*{box-sizing:border-box}
body{
margin:0;
font-family:'Segoe UI',Arial,sans-serif;
background:linear-gradient(-45deg,#e0f2ff,#f8fbff,#eef6ff,#e6f0fb);
background-size:400% 400%;
animation:gradientBG 18s ease infinite;
display:flex;
flex-direction:column;
min-height:100vh;
padding:30px 15px 20px;
}

@keyframes gradientBG {
0% {background-position:0% 50%;}
50% {background-position:100% 50%;}
100% {background-position:0% 50%;}
}
.container{
width:100%;
max-width:420px;
margin:0 auto;
}

.card{
background:rgba(255,255,255,0.95);
padding:28px 22px;
border-radius:24px;
box-shadow:
0 20px 60px rgba(15,76,129,.12),
0 8px 20px rgba(15,76,129,.08);
text-align:center;
border:1px solid rgba(15,76,129,.08);
backdrop-filter: blur(8px);

opacity:0;
transform:translateY(20px);
animation:fadeInCard .8s ease forwards;
}

@keyframes fadeInCard{
to{
opacity:1;
transform:translateY(0);
}
}

.logo{width:240px;margin-bottom:5px}
h2{margin:10px 0 30px 0;font-weight:600;color:#0f172a;font-size:20px}
input{
width:100%;
padding:16px 18px;
margin-bottom:22px;
border:1px solid #dbeafe;
border-radius:14px;
font-size:16px;
background:#f1f7ff;
transition:all .25s ease;
}
input:focus{
border-color:#2563eb;
background:#ffffff;
outline:none;
box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
transform:translateY(-1px);
}
input::placeholder{
color:#466187;
font-weight:500;
}

button{
position:relative;
overflow:hidden;
width:100%;
padding:15px;
background:#2563eb;
color:white;
border:none;
border-radius:14px;
font-size:16px;
font-weight:600;
cursor:pointer;
transition:all .2s ease;
}

button:hover{
transform:translateY(-2px);
box-shadow:0 10px 20px rgba(37,99,235,.25);
}
button:disabled{opacity:.6;cursor:not-allowed}
.error{color:#dc2626;margin-top:15px;font-size:14px;min-height:20px}
.footer{
margin-top:30px;
text-align:center;
}
.footer img{width:360px;opacity:.95}
.footer p{font-size:13px;color:#475569;margin-top:14px}
.link{margin-top:10px;cursor:pointer;color:#2563eb;font-size:14px}
#installBtn{
background:linear-gradient(135deg,#0f172a,#1e293b);
color:white;
font-weight:600;
border-radius:14px;
box-shadow:0 8px 20px rgba(0,0,0,0.15);
transition:all .2s ease;
display:flex;
align-items:center;
justify-content:center;
gap:8px;
}
#installBtn:hover{
transform:translateY(-2px);
}
.main-wrapper{
display:flex;
flex-direction:column;
flex:1;
}

.container{
width:100%;
max-width:420px;
margin:0 auto;
}

.footer{
margin-top:auto;
text-align:center;
padding-top:20px;
}

@media (max-width:480px){
body{
padding-top:25px;
}
.logo{
width:200px;
}
.footer img{
width:330px;
}
}
.input-group{
position:relative;
margin-bottom:24px;
}

.input-group input{
width:100%;
padding:18px 16px 14px;
border:1px solid #dbeafe;
border-radius:14px;
font-size:16px;
background:#f1f7ff;
transition:all .25s ease;
}

.input-group label{
position:absolute;
left:16px;
top:16px;
color:#64748b;
font-size:15px;
pointer-events:none;
transition:all .25s ease;
background:white;
padding:0 6px;
}

.input-group input:focus,
.input-group input:valid{
background:white;
border-color:#2563eb;
box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

.input-group input:focus + label,
.input-group input:valid + label{
top:-8px;
font-size:12px;
color:#2563eb;
}
.ripple{
position:absolute;
border-radius:50%;
transform:scale(0);
animation:ripple .6s linear;
background:rgba(255,255,255,.5);
}

@keyframes ripple{
to{
transform:scale(4);
opacity:0;
}
}
.otp-input {
    font-family: monospace;
    letter-spacing: 1px;
}
.hidden-field {
    display: none;
}
.pin-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* PIN input box */
.pin-box {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}
/* OTP container */
.otp-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* OTP input box */
.otp-box {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    line-height: 60px;
    padding: 0;
    box-sizing: border-box;
}

/* Disabled resend state */
.resend-disabled {
    opacity: .5;
    pointer-events: none;
}

/* Small subtitle */
.otp-subtext {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
}
/* Notification button */
.notif-btn {
    margin-top: 12px;
    background: linear-gradient(135deg,#facc15,#f59e0b);
    color: #1e293b;
    font-weight: 600;
}

/* Modal container */
.notif-modal {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    width: 90%;
    max-width: 380px;
    text-align: center;
}

/* Modal icon wrapper */
.notif-icon-wrapper {
    margin-bottom: 14px;
}

/* Modal icon */
.notif-icon {
    font-size: 48px;
    color: #facc15;
    background: #fff8dc;
    padding: 18px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Modal text */
.notif-text {
    font-size: 15px;
    margin-bottom: 16px;
    color: #1e293b;
}

/* Skip link */
.notif-skip {
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
}

/* ===== BIOMETRIC MODAL ===== */

.biometric-modal {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: white;
padding: 18px;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
z-index: 9999;
width: 90%;
max-width: 380px;
text-align: center;
}

.biometric-icon {
font-size: 48px;
color: #10b981;
background: #ecfdf5;
padding: 18px;
border-radius: 50%;
box-shadow: 0 6px 18px rgba(0,0,0,0.15);
margin-bottom: 14px;
}

.biometric-btn {
margin-bottom: 10px;
}
.bio-retry-container {
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}
.bio-retry-container:active {
    transform: scale(0.9);
}
.bio-icon-btn {
    font-size: 40px;
    color: #007bff; /* Match your theme color */
}
.switch-user-link {
    display: block;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}
.switch-user-link:hover {
    color: #0f172a;
}
.bio-pulse-btn {
    background: #1e293b;
    color: white;
    border: 2px solid #38bdf8;
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
body.loading #card {
    opacity: 0;
    pointer-events: none;
}
/* ============================
   SETUP CARD STYLING
============================ */

.setup-card-container {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.setup-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: fadeUp 0.3s ease;
}

.setup-icon {
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 15px;
}

.setup-card h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.setup-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
}

.setup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.primary-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.primary-btn:hover {
    background: #0b5ed7;
}

.secondary-btn {
    background: #f1f1f1;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.secondary-btn:hover {
    background: #e2e2e2;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}