:root {
    color-scheme: only light;
    --primary: #6D8B74;
    --secondary: #A4BE7B;
    --bg: #F7F2EE;
    --text: #2E2E2E;
    --text-muted: #6B6B6B;
    --border: #E8E0D8;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(46, 46, 46, 0.12);
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Rubik', 'Heebo', sans-serif;
    color: var(--text);
    background: var(--bg);
    color-scheme: only light;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

.auth-hero {
    position: relative;
    background:
        linear-gradient(145deg, rgba(45, 74, 62, 0.82), rgba(109, 139, 116, 0.72)),
        url('/images/hero-succulent.jpg') center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(164, 190, 123, 0.25), transparent 55%);
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 34rem;
}

.auth-hero-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-hero-brand .site-logo,
.auth-hero-brand .site-logo-auth,
.auth-mobile-brand .site-logo,
.auth-mobile-brand .site-logo-auth {
    height: 56px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

.auth-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.auth-brand-name {
    font-size: 1.35rem;
    font-weight: 600;
}

.auth-hero-title {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 600;
}

.auth-hero-text {
    font-size: 1.05rem;
    opacity: 0.92;
    margin: 0;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-main-inner {
    width: min(100%, 440px);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: var(--primary);
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 1rem;
}

.auth-title {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.auth-subtitle {
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.auth-input {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(109, 139, 116, 0.15);
}

.auth-field-error,
.field-validation-error {
    display: block;
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.auth-password-hints {
    margin-top: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.auth-password-hints__title {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.auth-password-hints__list {
    margin: 0;
    padding-right: 1.1rem;
    padding-left: 0;
}

.auth-password-hints__list li {
    margin-bottom: 0.15rem;
}

.auth-password-hints__list li:last-child {
    margin-bottom: 0;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
    flex-wrap: wrap;
}

.auth-check .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #587860);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(109, 139, 116, 0.35);
}

.auth-alert {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #922820;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.auth-alert:empty {
    display: none;
}

.auth-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.auth-demo {
    font-size: 0.8rem;
    line-height: 1.5;
    background: var(--bg);
    border-radius: 10px;
    padding: 0.75rem;
}

.auth-demo-label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        display: none;
    }

    .auth-mobile-brand {
        display: inline-flex;
    }

    .auth-main {
        padding: 1.25rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
}
