/* Auth Pages Styling */

/* ── Auth page background ── */
.auth-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-image:
        radial-gradient(ellipse 50% 60% at 80% 20%, rgba(245, 158, 11, 0.1), transparent),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(139, 92, 246, 0.07), transparent);
}

/* ── Glass card ── */
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) * 2);
    box-shadow: var(--shadow-glow);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--foreground);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--muted-foreground);
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--card-foreground);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-input {
    width: 100%;
    padding-right: 2.75rem;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-wrapper .form-control {
    width: 100%;
    padding: 14px 14px 14px 50px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--foreground);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper .form-control::placeholder {
    color: var(--muted-foreground);
}

.input-wrapper .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    background: var(--input);
}

/* ── Input fields (glass style) ── */
.form-input {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

/* ── Password toggle button ── */
.pw-toggle {
    position: absolute;
    right: 0.65rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    transition: color 0.15s ease;
}

.pw-toggle:hover { color: var(--foreground); }

/* ── Submit button (pill style) ── */
.btn-auth-submit {
    width: 100%;
    min-height: 44px;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-auth-submit:hover { opacity: 0.88; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: var(--primary-foreground);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--muted-foreground);
    margin: 0;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Alert styling */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f8d7da;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #d1e7dd;
}

/* Demo credentials box */
.demo-credentials {
    margin-top: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    text-align: center;
}

.demo-credentials p {
    margin: 5px 0;
    color: var(--card-foreground);
    font-size: 0.85rem;
}

.demo-credentials p:first-child {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 1.7rem;
    }
}
