:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --primary-orange: #ff6b35;
    --orange-hover: #ff8c5a;
    --sidebar-dark: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --light-gray: #e2e8f0;
    --border-gray: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 60, 114, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 5000;
    animation: modalOverlayFade 0.3s ease-out;
}

@keyframes modalOverlayFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-message {
    font-size: 1rem;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.5px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f9;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 10px;
    font-size: 1rem;
    color: #888;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--primary-blue);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--primary-blue);
    background-color: white;
    padding: 0 5px;
}

.floating-group {
    position: relative;
    margin-bottom: 25px;
}

.floating-select {
    width: 100%;
    padding: .9rem 0.625rem 0.625rem ;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

.floating-label {
    position: absolute;
    left: 12px;
    top: 14px;
    color: #888;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-select:focus,
.floating-select:not([value=""]) {
    border-color: var(--primary-blue);
}
.floating-select:focus ~ .floating-label,
.floating-select:not([value=""]) ~ .floating-label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--primary-blue);
    background-color: white;
    padding: 0 5px;
}

.toggle-password {
    position: absolute;
    right: .5rem;
    /* top: 50%;
    transform: translateY(-50%); */
    top: 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-text);
    user-select: none;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-blue);
}

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
    width: max-content;
}

.forgot-password a {
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.forgot-password a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-blue);
}

.link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-text);
    font-size: 0.90rem;
    color: var(--dark-text);
}

.link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.errorText {
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: slideDown 0.3s ease-out;
}

.about-info{
    text-align: center;
    margin-top: 2rem;
}

.about-info a {
    font-size: 0.90rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.about-info:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
    cursor: pointer;
}

.back-btn {
    background-color: var(--light-gray);
    color: var(--dark-text);
    margin-top: 1rem;
}

.back-btn:hover {
    background-color: var(--gray-text);
    color: var(--light-gray);
    margin-top: 1rem;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: .20rem;
    margin-bottom: 1.75rem;
}

.otp-inputs input {
    flex: 1;
    width: 40px;
    height: 60px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border: 3px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    letter-spacing: 1px;
}

.otp-inputs input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 12px 30px rgba(255, 107, 53, 0.2);
    transform: translateY(-3px);
}

.otp-inputs input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.resend-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
     margin-top: 1.25rem;
}

.resend-btn {
    background: transparent;
    color: #1e3c72;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
}

.resend-btn:hover:not(:disabled) {
    background: rgba(30, 60, 114, 0.1);
    color: #ff6b35;
    transform: translateY(-1px);
}

.resend-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.timer {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 400px) {
    .container {
        height: 100vh;
    }
}