/**
 * Digital Services Portal - Auth CSS (Fintech Navy + Electric Blue Theme)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --primary-navy: #0B1F3A;
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    --bg-body: #F5F7FB;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --shadow-card: 0 12px 30px -8px rgba(11, 31, 58, 0.12), 0 4px 6px -2px rgba(11, 31, 58, 0.04);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(11, 31, 58, 0.05) 0px, transparent 50%);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 430px;
    padding: 36px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--accent-blue));
}

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

.auth-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.form-input-wrapper {
    position: relative;
}

.form-input-wrapper i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 13px;
}

.form-input-wrapper .form-control {
    padding-left: 38px;
}

.form-control {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 13px;
    color: var(--text-main);
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-auth {
    width: 100%;
    padding: 11px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-auth:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-auth {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 18px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    display: flex;
    align-items: center;
    gap: 9px;
}

.alert-auth-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

/* 2FA Steps & OTP Styling */
.auth-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    background: #F1F5F9;
}

.auth-step-pill.active {
    background: #EFF6FF;
    color: var(--accent-blue);
    border: 1px solid #BFDBFE;
}

.auth-step-pill.completed {
    background: #ECFDF5;
    color: #059669;
}

.auth-step-arrow {
    font-size: 10px;
    color: #CBD5E1;
}

.otp-input-field {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 8px;
    font-family: 'Courier New', Courier, monospace;
    height: 52px;
}

.user-identity-box {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-identity-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-identity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.user-identity-text strong {
    display: block;
    font-size: 13px;
    color: var(--primary-navy);
}

.user-identity-text span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}
