/* ===== LOGIN PAGE STYLES ===== */

/* ===== HOME LINK ===== */
.auth-home-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.auth-home-link a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--white-ghost);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(43,35,32,0.1);
    font-family: var(--body);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    transition: all 0.3s ease;
}

.auth-home-link a:hover {
    background: var(--gold);
    color: var(--white-ghost);
    transform: translateX(-4px);
}

.auth-home-link i {
    font-size: 16px;
}

:root {
    --cream: #F7EFE1;
    --cream-dark: #EFE1C8;
    --ink: #2B2320;
    --ink-soft: #5B4E44;
    --rust: #B5502D;
    --rust-dark: #8F3D20;
    --gold: #D9A441;
    --green: #47614A;
    --board: #2E3B2E;
    --board-light: #3C4C3C;
    --white-ghost: #F8F8FF;
    --display: 'Fraunces', serif;
    --body: 'Manrope', sans-serif;
    --chalk: 'Caveat', cursive;
    --radius: 22px;
    --radius-sm: 12px;
    --shadow: 0 18px 40px -18px rgba(43,35,32,0.35);
}

/* ===== BASE OVERRIDES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--display);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.amp {
    color: var(--gold);
    font-weight: 700;
}

ul {
    list-style: none;
}

/* ===== AUTH SECTION ===== */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    gap: 40px;
    background: var(--white-ghost);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ===== VISUAL SIDE ===== */
.auth-visual {
    background: linear-gradient(135deg, var(--board) 0%, var(--board-light) 100%);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23D9A44110"/><circle cx="80" cy="80" r="2" fill="%23D9A44110"/><circle cx="50" cy="10" r="1.5" fill="%23D9A44110"/><circle cx="30" cy="70" r="1" fill="%23D9A44110"/></svg>');
    opacity: 0.3;
}

.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-title {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-subtitle {
    font-family: var(--body);
    font-size: 16px;
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 40px;
    line-height: 1.7;
}

.visual-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item i {
    font-size: 24px;
    color: var(--gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 164, 65, 0.15);
    border-radius: 50%;
}

.feature-item span {
    font-family: var(--body);
    font-size: 15px;
    font-weight: 500;
    color: var(--cream);
}

/* ===== FORM SIDE ===== */
.auth-form-container {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
}

.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.form-title {
    font-family: var(--display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--board);
    margin-bottom: 8px;
}

.form-subtitle {
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink-soft);
    opacity: 0.8;
}

/* ===== AUTH FORM ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Messages */
.error-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.error-message {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.error-message i {
    color: #DC2626;
}

.success-message {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.success-message i {
    color: #16A34A;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    color: var(--board);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--gold);
    font-size: 14px;
}

.form-group input {
    font-family: var(--body);
    font-size: 16px;
    padding: 14px 18px;
    border: 2px solid rgba(43, 35, 32, 0.1);
    border-radius: var(--radius-sm);
    background: var(--white-ghost);
    color: var(--ink);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.15);
}

.form-group input::placeholder {
    color: var(--ink-soft);
    opacity: 0.5;
}

.form-group input.error {
    border-color: var(--rust);
}

.field-error {
    font-family: var(--body);
    font-size: 12px;
    color: var(--rust);
    display: none;
}

.field-error.show {
    display: block;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--gold);
}

.toggle-password i {
    font-size: 16px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--gold);
    cursor: pointer;
}

.forgot-link {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--rust);
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--body);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    background: var(--board);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 164, 65, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--ink-soft);
    cursor: not-allowed;
    transform: none;
}

.submit-btn span {
    flex: 1;
}

.submit-btn i {
    font-size: 14px;
    transition: transform 0.3s;
}

.submit-btn:hover i {
    transform: translateX(4px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(43, 35, 32, 0.1);
}

.divider span {
    font-family: var(--body);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Switch */
.auth-switch {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center;
}

.auth-switch a {
    font-weight: 600;
    color: var(--board);
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: var(--gold);
}

/* ===== FOOTER ===== */
.auth-footer {
    padding: 20px;
    text-align: center;
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-soft);
    background: var(--cream);
    border-top: 1px solid rgba(43, 35, 32, 0.05);
}

.auth-footer strong {
    color: var(--gold);
}

.auth-footer i {
    margin-right: 4px;
    color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 80px 16px 40px;
    }

    .auth-form-container {
        padding: 32px 24px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-group input,
    .submit-btn {
        font-size: 16px;
    }
}
