/*
|--------------------------------------------------------------------------
| Authentication pages
|--------------------------------------------------------------------------
*/

.auth-mobile-brand {
    display: none;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(243, 232, 210, 0.95),
            transparent 34%
        ),
        var(--color-bg);
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(32px, 6vw, 80px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    width: fit-content;
    font-weight: 800;
}

.auth-brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-primary-dark)
        );
    box-shadow:
        0 10px 25px rgba(184, 138, 59, 0.25);
}

.auth-brand-text {
    font-size: var(--font-size-lg);
}

.auth-showcase-content {
    max-width: 720px;
    padding: var(--space-12) 0;
}

.auth-eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-primary-dark);
    font-size: var(--font-size-sm);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-showcase-title {
    max-width: 760px;
    margin-bottom: var(--space-5);
    font-size: clamp(40px, 6vw, 74px);
    letter-spacing: -0.055em;
}

.auth-showcase-text {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--color-text-soft);
    font-size: var(--font-size-lg);
}

.auth-showcase-footer {
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
}

.auth-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: var(--space-8);
    border-left: 1px solid rgba(216, 208, 195, 0.75);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.auth-card {
    width: min(100%, 440px);
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.auth-card-header {
    margin-bottom: var(--space-8);
}

.auth-card-title {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-2xl);
    letter-spacing: -0.035em;
}

.auth-card-subtitle {
    margin-bottom: 0;
    color: var(--color-text-soft);
    font-size: var(--font-size-sm);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    color: var(--color-text);
    background: var(--color-surface);
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 4px rgba(184, 138, 59, 0.13);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-soft);
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.auth-link {
    color: var(--color-primary-dark);
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 50px;
}

.auth-card-footer {
    margin-top: var(--space-6);
    text-align: center;
    color: var(--color-text-soft);
    font-size: var(--font-size-sm);
}

.alert {
    margin-bottom: var(--space-5);
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.alert-error {
    color: #8f2f2f;
    border-color: rgba(196, 71, 71, 0.25);
    background: rgba(196, 71, 71, 0.09);
}

.alert-success {
    color: #267341;
    border-color: rgba(47, 143, 82, 0.25);
    background: rgba(47, 143, 82, 0.09);
}

@media (max-width: 900px) {
    .auth-page {
        display: block;
    }

    .auth-showcase {
        display: none;
    }

    .auth-panel {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        padding: var(--space-5);
        border-left: 0;
    }

    .auth-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: var(--space-3);
        width: min(100%, 440px);
        margin-bottom: var(--space-6);
        color: var(--color-text);
    }

    .auth-mobile-brand strong {
        display: block;
        font-size: var(--font-size-md);
    }

    .auth-mobile-brand small {
        display: block;
        color: var(--color-text-light);
        font-size: var(--font-size-xs);
        font-weight: 700;
    }
}

.password-field {
    position: relative;
}

.password-field .password-input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: #222;
}

.password-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.password-eye {
    font-size: 20px;
    line-height: 1;
}

.password-field {
    position: relative;
}

.password-field .password-input {
    width: 100%;
    padding-right: 56px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: #222;
}

.password-eye {
    font-size: 20px;
    line-height: 1;
}

/* =========================================================
   Shared Authentication Layout
   Login / Register / Forgot / Reset / Verify
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f6f3ec;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    padding: 44px;
    background: #ffffff;
    border: 1px solid rgba(120, 95, 55, 0.16);
    border-radius: 32px;
    box-shadow: 0 18px 50px rgba(36, 28, 18, 0.08);
}

.auth-card h1,
.auth-card-title {
    margin: 0 0 14px;
    color: #171717;
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.1;
}

.auth-card p,
.auth-card-subtitle {
    margin: 0 0 28px;
    color: #6f6a61;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-label {
    color: #202020;
    font-weight: 700;
}

.form-control,
.auth-form input {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    border: 1px solid #ddd5c8;
    border-radius: 18px;
    background: #ffffff;
    color: #222222;
    font: inherit;
    box-sizing: border-box;
}

.form-control:focus,
.auth-form input:focus {
    border-color: #bd8a32;
    outline: 3px solid rgba(189, 138, 50, 0.16);
}

.auth-submit,
.auth-form > button[type="submit"],

.login-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    margin-top:24px;
    padding:18px;
    border-radius:999px;
    background:#BD8A32;
    color:#fff;
    text-decoration:none;
    font-weight:700;
}

.login-btn:hover{
    color:#fff;
    background:#A87623;
}

.auth-submit:hover,
.auth-form > button[type="submit"]:hover,
.login-btn:hover {
    filter: brightness(0.94);
}

.alert,
.auth-error,
.auth-success {
    margin-bottom: 20px;
    padding: 15px 18px;
    border-radius: 15px;
    line-height: 1.5;
}

.alert-error,
.auth-error {
    border: 1px solid #efb5b5;
    background: #fff0f0;
    color: #a43030;
}

.alert-success,
.auth-success {
    border: 1px solid #a9dfbd;
    background: #edf9f1;
    color: #18763b;
}

.auth-switch,
.auth-card-footer {
    margin-top: 24px;
    color: #6f6a61;
    text-align: center;
}

.auth-switch a,
.auth-link,
.auth-card-footer a {
    color: #8d6422;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-link:hover,
.auth-card-footer a:hover {
    text-decoration: underline;
}

/* Password visibility button */

.password-field {
    position: relative;
}

.password-field .password-input {
    width: 100%;
    padding-right: 60px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 38px !important;
    height: 38px !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    color: #777777 !important;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #222222 !important;
}

.password-toggle:focus-visible {
    outline: 2px solid #bd8a32;
    outline-offset: 2px;
}

.password-eye {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 30px 24px;
        border-radius: 26px;
    }
}