/* ===================================================
   AUTH PAGES - Short, Wide, Minimal
=================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 100%);
    min-height: 100vh;
    color: #0f172a;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    max-width: 540px;   /* WIDE – clean & spacious */
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.08);
}

/* Headings */
.auth-card .auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #0f172a;
}
.auth-card .auth-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 16px;
}

/* Form groups – reduced spacing */
.auth-card .mb-3 {
    margin-bottom: 0.7rem !important;
}
.auth-card .mb-2 {
    margin-bottom: 0.6rem !important;
}

/* Labels – smaller */
.auth-card .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
}

/* Inputs – shorter and cleaner */
.auth-card .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafcff;
    height: 38px;
}
.auth-card .form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
    background: #ffffff;
}

/* Primary button – compact */
.auth-card .btn-primary {
    background: #4f46e5;
    border: none;
    padding: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.auth-card .btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.auth-card .btn-primary i {
    margin-right: 6px;
}

/* Divider – if needed */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.7rem;
    margin: 12px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }

/* Google Button – red icon, white background */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
.btn-google i {
    font-size: 1rem;
    color: #ea4335;   /* Google red */
}

/* Auth links */
.auth-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}
.auth-link:hover {
    text-decoration: underline;
}

/* Checkbox – smaller */
.auth-card .form-check {
    min-height: auto;
}
.auth-card .form-check-input {
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}
.auth-card .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.auth-card .form-check-label {
    font-size: 0.75rem;
    color: #64748b;
}

/* Small text */
.auth-card .text-muted {
    font-size: 0.7rem;
}

/* Flash messages */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
}

/* ===================================================
   RESPONSIVE – even better on mobile
=================================================== */
@media (max-width: 480px) {
    .auth-card {
        padding: 16px 14px 20px;      /* tighter */
        border-radius: 14px;
        max-width: 100%;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    }
    .auth-card .auth-title {
        font-size: 1rem;              /* smaller heading */
    }
    .auth-card .auth-subtitle {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    .auth-card .form-control {
        font-size: 0.8rem;
        height: 36px;
        padding: 0.35rem 0.7rem;
    }
    .auth-card .btn-primary {
        font-size: 0.8rem;
        padding: 7px;
    }
    .auth-card .form-label {
        font-size: 0.7rem;
    }
    .btn-google {
        font-size: 0.75rem;
        padding: 6px;
    }
    .auth-link {
        font-size: 0.75rem;
    }
    .auth-card .text-muted {
        font-size: 0.65rem;
    }
    .alert {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}