/* ===== Login Page ===== */
.auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px 64px;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    overflow: hidden;
}
/* Header band */
.auth-card-header {
    background: #1a3a6b;
    padding: 32px 36px 28px;
    text-align: center;
}
.auth-card-header .auth-logo {
    max-height: 44px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    opacity: .9;
}
.auth-card-header h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: .3px;
}
.auth-card-header p {
    color: rgba(255,255,255,.72);
    font-size: 13.5px;
    margin: 6px 0 0;
}
/* Body */
.auth-card-body { padding: 32px 36px; }

/* Field */
.auth-field { margin-bottom: 20px; }
.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}
.auth-field .auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14.5px;
    background: #fafbfc;
    color: #1a1a2e;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.auth-field .auth-input:focus {
    outline: none;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26,58,107,.12);
    background: #fff;
}

/* Checkbox row */
.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 8px;
}
.auth-check-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4b5563;
    cursor: pointer;
    font-size: 13.5px;
}
.auth-check-row input[type=checkbox] { width:15px; height:15px; cursor:pointer; }
.auth-forgot {
    color: #1a3a6b;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}
.auth-forgot:hover { text-decoration: underline; }

/* Submit button */
.auth-btn-primary {
    width: 100%;
    background: #1a3a6b;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .4px;
    box-shadow: 0 3px 12px rgba(26,58,107,.28);
    transition: background .2s, transform .1s;
}
.auth-btn-primary:hover { background: #15316a; transform: translateY(-1px); }
.auth-btn-primary:active { transform: translateY(0); }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 12.5px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Signup CTA */
.auth-cta {
    text-align: center;
    font-size: 13.5px;
    color: #6b7280;
    margin-top: 4px;
}
.auth-btn-signup {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: #fff;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 12px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .2s, color .2s, transform .1s;
    box-sizing: border-box;
}
.auth-btn-signup:hover {
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Flash / validation errors */
.auth-error {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.auth-error i { margin-top: 1px; }

@media (max-width: 520px) {
    .auth-card-header { padding: 24px 20px 20px; }
    .auth-card-body   { padding: 24px 20px; }
}
