/* ============================================================
   public/css/auth.css — Auth Pages Styles
   ============================================================ */

.auth-body { background: #f1f5f9; }

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---- Left Panel ------------------------------------------- */
.auth-left {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, #1a7a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 48px 40px;
}

.auth-left-content { position: relative; z-index: 2; width: 100%; }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    margin-bottom: 48px;
}
.auth-logo-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
}
.auth-brand strong { display: block; font-size: 1.1rem; font-weight: 800; }
.auth-brand span { font-size: .78rem; color: rgba(255,255,255,.65); }

.auth-left-text { color: white; margin-bottom: 40px; }
.auth-left-text h2 { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.auth-left-text p { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.8; }

.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: rgba(255,255,255,.9);
    font-size: .9rem;
    font-weight: 500;
}
.auth-feature-item i { color: var(--gold); font-size: 1.1rem; }

/* Ornaments */
.auth-ornament-1 {
    position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.08);
    z-index: 1;
}
.auth-ornament-2 {
    position: absolute; bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(212,175,55,.12);
    z-index: 1;
}

/* ---- Right Panel ------------------------------------------ */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

/* ---- Auth Card -------------------------------------------- */
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

.auth-card-header { margin-bottom: 32px; }
.auth-card-header .back-link {
    font-size: .85rem;
    color: var(--text-muted);
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 20px;
}
.auth-card-header .back-link:hover { color: var(--primary); }
.auth-card-title { font-size: 1.7rem; font-weight: 800; color: var(--gray-800); margin-bottom: 6px; }
.auth-card-subtitle { font-size: .92rem; color: var(--text-muted); }

/* Form controls */
.form-group-auth { margin-bottom: 18px; }
.form-label-auth {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700, #374151);
    margin-bottom: 6px;
}
.input-group-auth { position: relative; }
.input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}
.form-control-auth {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: .92rem;
    font-family: var(--font-body);
    color: var(--text);
    background: white;
    transition: var(--transition-fast);
    outline: none;
}
.form-control-auth:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,94,60,.1);
}
.form-control-auth.is-invalid {
    border-color: #ef4444;
}

/* Password toggle */
.toggle-password {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer; padding: 0;
    font-size: 1rem;
}
.toggle-password:hover { color: var(--primary); }

/* Submit button */
.btn-auth {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), #1a7a4a);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11,94,60,.35);
}

/* Divider */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0; color: var(--text-muted); font-size: .83rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Links */
.auth-link { color: var(--primary); font-weight: 600; font-size: .88rem; }
.auth-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Remember me */
.form-check-auth { display: flex; align-items: center; gap: 8px; }
.form-check-auth input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.form-check-auth label { font-size: .88rem; color: var(--gray-600); cursor: pointer; }

/* Flash message inside auth */
.auth-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .88rem;
    margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
}
.auth-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.auth-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.auth-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* Role badges */
.role-hint {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-top: 16px;
}
.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

@media (max-width: 575.98px) {
    .auth-card { padding: 28px 20px; border-radius: 16px; }
}
