@charset "UTF-8";
*{-webkit-box-sizing:border-box;box-sizing:border-box}
body {margin: 0;padding:0;font-family: 'Inter', sans-serif;color: #000;height: 100vh;}
.login-page {height: 100vh;display: flex;align-items: center;
background: 
/*linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),*/
linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
url('../images/login-bg.png') center center / cover no-repeat; 
background-blend-mode: darken;
}
.login-card {background: rgba(255, 255, 255, 0.65); padding: 25px;width: 400px;height:100vh;
/*box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);*/}
.login-logo {text-align: center;margin-bottom: 30px;}
.login-logo h2 {color: #09b76b;margin:0 0 20px 0;text-align: center;text-shadow:0px 0px 5px #fff, 0px 0px 8px #fff;}
.login-logo img {max-width: 100%;height: auto;max-height: 120px;object-fit: contain;}
.m-info { margin: 50px 0 30px 0;}
.m-info .welcome{ font-size: 0.6875rem; text-align: center; padding: 0; margin: 0;}
.m-info h4{color: #090889; font-size: 1.25rem; text-align: center; padding: 8px 0; margin: 0;}

input, select {width: 100%;padding: 12px;margin-bottom: 5px;border: none;border-radius: 5px;
background-color: #fff;color: #000;font-size: 14px;border: 1px solid #dadada;
box-sizing: border-box;}
input:focus, select:focus {outline: 1px solid #090889;}
.btn-green {width: 100%;padding: 12px;background-color: #09b76b;color: white;
font-weight: bold;border: none;border-radius: 5px;cursor: pointer;}
.btn-green:hover {background-color: #22C55E;}
.btn-primary {width: 100%;padding: 12px;background-color: #1A237E;color: white;
font-weight: bold;border: none;border-radius: 5px;cursor: pointer;}
.btn-primary:hover {background-color: #090889;}

#loginError { color:#EF4444; font-size: .875rem; font-weight: 600;}

/* Input Group with Icon */
.input-group {position: relative;margin-bottom: 20px;}
.input-icon {position: absolute;top: 42%;left: 14px;transform: translateY(-50%);width: 20px;height: 20px;display: flex;
align-items: center;justify-content: center;pointer-events: none;}
.input-icon i {opacity: 0.8;font-size: 14px;color: #000;}
.input-modern-icon {padding: 12px 12px 12px 44px;}


/* overlay */
.otp-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.otp-modal.show {
    opacity: 1;
    visibility: visible;
}

/* box */
.otp-box {
    width: 360px;
    padding: 28px;
    border-radius: 16px;

    background: linear-gradient(145deg, #0f172a, #111827);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);

    text-align: center;
    color: #e2e8f0;

    transform: translateY(10px) scale(0.98);
    transition: all 0.25s ease;
}

.otp-modal.show .otp-box {
    transform: translateY(0) scale(1);
}

/* title */
.otp-box h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.otp-box p {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 18px;
}

/* inputs container */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
}

/* each input */
.otp-inputs input {
    width: 42px;
    height: 48px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);

    background: rgba(255,255,255,0.05);
    color: #fff;

    text-align: center;
    font-size: 18px;
    font-weight: 600;

    outline: none;

    transition: all 0.2s ease;
}

.otp-inputs input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

/* button */
.otp-box .btn {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: none;

    background: linear-gradient(135deg,#3b82f6,#06b6d4);
    color: #fff;

    font-weight: 600;
    cursor: pointer;

    transition: 0.3s ease;
}

.otp-box .btn:hover {
    transform: translateY(-1px);
}

/* error text */
.otp-error {
    margin-top: 10px;
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
}

/* shake animation for wrong OTP */
.otp-box.shake {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* mobile */
@media (max-width: 480px) {
    .otp-box {
        width: 90%;
        padding: 22px;
    }

    .otp-inputs input {
        width: 38px;
        height: 44px;
    }
}

.setup2fa {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.setup2fa.hidden {
    display: none;
}

.setup-card {
    width: 380px;
    padding: 25px;
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    text-align: center;
}

.setup-card h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.setup-card p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.qr-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    background: #fff;
    padding: 10px;
    border-radius: 14px;
}

.qr-wrapper img {
    width: 100%;
    height: 100%;
}

/* scan status overlay */
.scan-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #38bdf8;
    font-size: 12px;
    padding: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.secret-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 10px;
    font-family: monospace;
    margin-bottom: 15px;
}

.tip {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 15px;
}

.btn.primary {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg,#3b82f6,#06b6d4);
    color: white;
    cursor: pointer;
}