/* LOGIN CARD */

.login-card {
    position: relative;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 22px;
    padding: 40px 35px;
    margin: 10px 20px;
    width: 100%;
    max-width: 400px;
    color: #fff;

    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);

    background-image:
        radial-gradient(circle at 20% 20%, rgba(120,150,210,0.25), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(60,90,150,0.18), transparent 70%);

    border: 2px solid rgba(180, 210, 255, 0.45);

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.10),
        0 12px 30px rgba(0, 0, 0, 0.65),
        inset 0 5px 12px rgba(200, 230, 255, 0.35),
        inset 0 -3px 10px rgba(0, 0, 0, 0.45);
}

.login-card .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    gap: 8px;
}

.jtbit-logo {
    width: 55px;
    height: 55px;
}

.logo h1 {
    font-size: 40px;
    font-weight: bold;
}

.logo span {
    color: #D4AF37;
}

/* Ensures the entire logo container is centered */
.logo-link,
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Prevent color or underline changes */
.logo-link {
    color: inherit;
    text-decoration: none;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
}


/* Login Inputs */

.form-control {
    background-color: #111a2b !important;
    border: 1px solid #2c3548 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    transition: all 0.25s ease !important;
}

.form-control::placeholder {
    color: #9fb0cc !important;
}

.form-control:hover {
    background-color: #1a2336 !important;
    border-color: #3a465e !important;
}

.form-control:focus {
    border-color: #D4AF37 !important;
    background-color: #111a2b !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35) !important;
    color: #fff !important;
}

/* Login page password eye icon */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #a8a7a7 !important;
}

.password-toggle:hover {
    color: #fff !important;
}

/* SIGN-IN BUTTON */

.btn-signin {
    background: linear-gradient(90deg, #D4AF37, #f5d97a);
    border: none;
    font-weight: 600;
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    color: #000;

    transition: all 0.25s ease;
}

.btn-signin:hover {
    background: linear-gradient(90deg, #FFD700, #e9c86d);
    transform: scale(1.07);
    color: #000;
}

/* LINKS */

.forgot {
    font-size: 0.9rem;
    color: #9fb0cc;
    text-decoration: none;
}

.forgot:hover {
    color: #fff;
    text-decoration: none;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Message Banner */
.message-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px auto;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.4s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.message-banner.show {
    display: flex;
}

.message-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message-banner.success {
    background: rgba(40, 167, 69, 0.98);
    color: #fff;
    border-left: 5px solid #1e7e34;
    border: 2px solid rgba(30, 126, 52, 0.3);
}

.message-banner.error {
    background: rgba(220, 53, 69, 0.98);
    color: #fff;
    border-left: 5px solid #c82333;
    border: 2px solid rgba(200, 35, 51, 0.3);
}

.message-banner.warning {
    background: rgba(255, 193, 7, 0.98);
    color: #000;
    border-left: 5px solid #e0a800;
    border: 2px solid rgba(224, 168, 0, 0.3);
}

.message-banner .message-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.message-banner .message-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-banner .message-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.2s;
    flex-shrink: 0;
}

.message-banner .message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .message-banner {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .message-banner .message-text {
        font-size: 14px;
    }
}

.signup-link a {
    color: #0096ff;
    text-decoration: none;
}

.signup-link a:hover {
    color: #5fdaff;
    text-decoration: none;
}

/* Modals */

.modal-header {
    border-bottom: none !important;
    padding: 20px 30px 10px !important;
}

.modal-body {
    padding: 0px 30px 30px !important;
}

.modal-footer {
    border-top: none !important;
    padding: 0px 30px 30px !important;
    justify-content: center !important;
}

.modal-content {
    background: #1d1d1d !important;
    color: white !important;
    border-radius: 12px !important;
    border: 1px solid #333 !important;
}

.modal-title {
    font-size: 25px;
    text-align: center;
}

.modal-subtitle {
    font-size: 13px;
    text-align: center;
    color: #cecccc;
}

.modal-body .form-label {
    font-size: 15px;
    margin-top: 20px;
}

/* Modal buttons */

#sendResetBtn {
    margin-top: 20px;
    float: right;

    background: linear-gradient(90deg, #D4AF37, #f5d97a);
    font-weight: bold;
    border: none;
    color: #000;
    font-size: small;

    transition: all 0.25s ease;
}

#sendResetBtn:hover {
    background: linear-gradient(90deg, #FFD700, #e9c86d);
    transform: scale(1.05);
}

#continueToNewPass,
#updatePass {
    background: linear-gradient(90deg, #D4AF37, #f5d97a);
    border: none;
    color: #000;
    font-size: small;
    padding: 10px 20px;
    width: 200px;
    font-weight: bold;

    transition: all 0.25s ease;
}

#continueToNewPass:hover,
#updatePass:hover {
    background: linear-gradient(90deg, #FFD700, #e9c86d);
    transform: scale(1.05);
}

/* OTP inputs*/

.otp-input {
    width: 40px;
    height: 45px;
    font-size: 1.2rem;
    background: #111a2b;
    border: 1px solid #2c3548;
    color: #fff;
    text-align: center;
}

.otp-input:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 5px rgba(212,175,55,0.5) !important;
}


#newPassModal .password-wrapper {
    position: relative;
}

#newPassModal .password-wrapper input.form-control {
    padding-right: 42px !important;
}

#newPassModal .password-wrapper .password-toggle {
    position: absolute;
    right: 14px !important;
    top: 50%;
    transform: translateY(-50%);
    color: #a8a7a7 !important;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

#newPassModal .password-wrapper .password-toggle:hover {
    color: #fff !important;
}

/* Success Modal */

.success-toast {
    padding: 50px 20px 10px;
}

/* Green check circle */
.check-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #28c76f;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    animation: popscale .35s ease-out;
}

.checkmark-icon {
    font-size: 2.3rem;
    color: #28c76f;
}

.success-title {
    color: #28c76f;
    font-weight: 700;
    font-size: 1.25rem;
}

.success-message {
    color: #c7c7c7;
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Animation */
@keyframes popscale {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


#successModal.modal {
    transition: opacity .2s ease-out !important;
}

