:root {
    --sz-green-dark: #0d9f60;
    --sz-green-mid: #0a7647;
    --sz-green-accent: #fcfcfc;
    --sz-ink: #1F2937;
    --sz-grey: #6B7280;
    --sz-grey-light: #9CA3AF;
    --sz-border: #E5E7EB;
    --sz-bg: #F8F9FA;
}

* {
    box-sizing: border-box;
}

.auth-body {
    margin: 0;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    color: var(--sz-ink);
}

.auth-wrap {
    display: flex;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.auth-brand {
    flex: 0 0 46%;
    background-color: var(--sz-green-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
}

.auth-brand-inner {
    padding: 3rem 3.5rem;
    width: 100%;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.auth-logo-img {
    width: min(380px, 80%);
    height: auto;
}

.auth-logo-mark {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--sz-green-accent);
}

.auth-logo-mark svg {
    width: 100%;
    height: 100%;
}

.auth-logo-text {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--sz-green-accent);
    line-height: 1.3;
}

.auth-logo-text small {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fcfcfc;
}

.auth-eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9CBEB0;
}

.auth-headline {
    margin: 0 0 1rem;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.auth-subline {
    margin: 0;
    max-width: 30rem;
    font-size: 1rem;
    color: #CFE3DA;
    line-height: 1.6;
}

.auth-illustration {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    max-width: 26rem;
}

.auth-illustration svg {
    display: block;
    width: 100%;
    height: auto;
}

.auth-form-side {
    flex: 1;
    background-color: var(--sz-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    min-height: 0;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    background-color: #ffffff;
    border: 1px solid var(--sz-border);
    border-radius: 12px;
    padding: 2rem 2.2rem;
    box-shadow: 0 10px 30px rgba(19, 59, 38, 0.08);
    margin-top: 40px;
}

.auth-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sz-ink);
}

.auth-lead {
    margin: 0 0 1.8rem;
    font-size: 0.9rem;
    color: var(--sz-grey);
    line-height: 1.5;
}

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

.auth-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sz-ink);
}

.auth-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.85rem;
    width: 1.05rem;
    height: 1.05rem;
    color: var(--sz-grey-light);
    pointer-events: none;
}

.auth-input-icon svg {
    width: 100%;
    height: 100%;
}

.auth-input-shell input {
    width: 100%;
    padding: 0.75rem 0.9rem 0.75rem 2.6rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--sz-ink);
    background-color: #ffffff;
    border: 1.5px solid var(--sz-border);
    border-radius: 8px;
}

.auth-input-shell input:focus {
    outline: none;
    border-color: var(--sz-green-accent);
    box-shadow: 0 0 0 3px rgba(78, 150, 128, 0.15);
}

.auth-toggle-vis {
    position: absolute;
    right: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--sz-grey-light);
    cursor: pointer;
}

.auth-toggle-vis svg {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-toggle-vis .icon-eye-off {
    display: none;
}

.auth-toggle-vis.is-visible .icon-eye {
    display: none;
}

.auth-toggle-vis.is-visible .icon-eye-off {
    display: block;
}

.auth-toggle-vis.is-visible {
    color: var(--sz-ink);
}

.auth-row-end {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0.2rem 0 1.5rem;
    font-size: 0.82rem;
}

.auth-login-error {
    min-height: 1rem;
    color: #cf140a;
    font-size: 0.82rem;
    line-height: 1.3;
}

.auth-link {
    color: var(--sz-green-mid);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-submit {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--sz-green-dark);
    border: 1px solid var(--sz-green-dark);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.auth-submit:hover {
    background-color: var(--sz-green-mid);
    border-color: var(--sz-green-mid);
}

.auth-policy {
    margin: 1.6rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--sz-border);
    text-align: center;
}

.auth-link-muted {
    color: var(--sz-grey);
    font-size: 0.8rem;
    text-decoration: none;
}

.auth-link-muted:hover {
    color: var(--sz-green-mid);
}

.auth-copyright {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--sz-grey-light);
}

.message.error {
    background-color: #FBEAE9;
    border-color: #F0C9C6;
    color: #A23E39;
}

@media (max-width: 860px) {
    .auth-wrap {
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .auth-brand {
        flex: none;
        padding: 0;
    }

    .auth-brand-inner {
        padding: 1.5rem;
    }

    .auth-illustration {
        display: none;
    }

    .auth-form-side {
        padding: 1.5rem 1rem;
    }

    .auth-card {
        padding: 1.75rem 1.5rem;
    }
}

.forgot-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--sz-bg);
    padding: 2rem 1.5rem;
    text-align: center;
}

.forgot-inner {
    width: 100%;
    max-width: 440px;
}

.forgot-icon {
    width: 88px;
    height: auto;
    display: block;
    margin: 0 auto 1.75rem;
}

.forgot-title {
    margin: 0 0 0.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--sz-ink);
}

.forgot-subtitle {
    margin: 0 0 2.25rem;
    font-size: 1rem;
    color: var(--sz-grey);
    line-height: 1.5;
}

.forgot-form {
    text-align: left;
}

.forgot-form .auth-field {
    margin-bottom: 1.25rem;
}

.forgot-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sz-ink);
}

.forgot-form input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--sz-ink);
    background-color: #ffffff;
    border: 1.5px solid var(--sz-border);
    border-radius: 10px;
}

.forgot-form input:focus {
    outline: none;
    border-color: var(--sz-green-dark);
    box-shadow: 0 0 0 3px rgba(13, 159, 96, 0.15);
}

.forgot-submit {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.4rem;
    background-color: var(--sz-green-dark);
    border: 1px solid var(--sz-green-dark);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.forgot-submit:hover {
    background-color: var(--sz-green-mid);
    border-color: var(--sz-green-mid);
}

.forgot-divider {
    border: none;
    border-top: 1px solid var(--sz-border);
    margin: 1.75rem 0;
}

.forgot-back-link {
    display: inline-block;
    color: var(--sz-ink);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
}

.forgot-back-link:hover {
    color: var(--sz-green-dark);
}

@media (max-width: 500px) {
    .forgot-title {
        font-size: 1.8rem;
    }
}

.message {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;

    max-width: 380px;
    padding: 1rem 1.5rem;

    background-color: #F5F1E8;
    border: 1px solid #DDD4C2;
    border-radius: 12px;

    color: #17201B;
    font-size: 0.95rem;
    line-height: 1.4;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.auth-login-error .message {
    position: static;
    margin: 0;
    padding: 0;
    max-width: none;
    background: none;
    border: none;
    box-shadow: none;
}

.auth-login-error .message.error {
    color: #A23E39;
}