* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Lato", sans-serif;
}

body {
    background: linear-gradient(135deg, #0b1f3a, #123b69);
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.login-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 18px;
}

.login-card h1 {
    font-size: 20px;
    color: #0b1f3a;
    margin-bottom: 4px;
}

.subtitle {
    color: #5f6b7a;
    font-size: 12px;
    margin-bottom: 16px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: #1f2d3d;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d4dbe3;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: #123b69;
    box-shadow: 0 0 0 3px rgba(18, 59, 105, 0.12);
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrap input {
    width: 100%;
    padding-right: 60px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #123b69;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    user-select: none;
    z-index: 2;
    transition: color 0.15s ease, background 0.15s ease;
}

.toggle-password:hover {
    color: #2563eb;
    background: rgba(18, 59, 105, 0.06);
}

.btn-login {
    width: 100%;
    background: #123b69;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 8px;
}

.btn-login:hover:not(:disabled) {
    background: #0f3156;
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e1;
    color: #0f172a;
}

/* OTP Slots */
.text-center {
    text-align: center;
}

.otp-boxes-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 14px auto 18px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.form-group .otp-boxes-group input.otp-digit,
.otp-boxes-group .otp-digit,
.otp-digit {
    width: 44px !important;
    max-width: 44px !important;
    min-width: 32px !important;
    flex: 0 0 44px !important;
    height: 52px !important;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #0b1f3a;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box !important;
    caret-color: #2563eb;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 360px) {
    .otp-boxes-group {
        gap: 5px !important;
    }
    .form-group .otp-boxes-group input.otp-digit,
    .otp-boxes-group .otp-digit,
    .otp-digit {
        width: 38px !important;
        max-width: 38px !important;
        flex: 0 0 38px !important;
        height: 46px !important;
        font-size: 18px;
    }
}

.otp-digit:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
    transform: translateY(-2px);
}

.otp-digit.filled {
    border-color: #64748b;
    background: #ffffff;
}

.otp-digit.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.login-message {
    min-height: 22px;
    margin-top: 14px;
    font-size: 0.92rem;
    text-align: center;
}

.login-message.error {
    color: #c62828;
}

.login-message.success {
    color: #2e7d32;
}

.login-footer {
    margin-top: 12px;
    font-size: 12px;
    color: #8c98a5;
}