* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #00416A, #E4E5E6);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Update the login box styles */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 65, 106, 0.2);
    width: 400px;
    animation: fadeIn 0.8s ease-in-out;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Update text colors for better contrast */
.login-header h2 {
    color: #00416A;
    margin-bottom: 10px;
}

.login-header p {
    color: #1a1a1a;
}

/* Update input styles */
.input-group input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 65, 106, 0.2);
}

.input-group input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 65, 106, 0.1);
}

/* Update button gradient */
.login-btn {
    background: linear-gradient(135deg, #00416A, #005c96);
    box-shadow: 0 2px 4px rgba(0, 65, 106, 0.2);
}

.login-btn:hover {
    background: linear-gradient(135deg, #005c96, #00416A);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group input:focus,
.input-group input:valid {
    border-color: #00416A;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    left: 5px;
    font-size: 14px;
    background: white;
    padding: 0 5px;
    color: #00416A;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-forgot label {
    color: #666;
    cursor: pointer;
}

.remember-forgot a {
    color: #00416A;
    text-decoration: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #00416A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #002d4a;
    transform: scale(1.02);
}

.login-btn:active {
    transform: scale(0.98);
}

.remember-forgot a {
    position: relative;
    color: #00416A;
    text-decoration: none;
}

.remember-forgot a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #00416A;
    transition: width 0.3s ease;
}

.remember-forgot a:hover::after {
    width: 100%;
}

/* Add these new styles to your existing styles.css file */

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: #00416A;
    text-decoration: none;
    position: relative;
}

.back-to-login a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #00416A;
    transition: width 0.3s ease;
}

.back-to-login a:hover::after {
    width: 100%;
}

#otpSection, #newPasswordSection {
    animation: fadeIn 0.5s ease-in-out;
}

.login-btn + .login-btn {
    margin-top: 10px;
}

/* Add these responsive styles to your existing CSS */

@media screen and (max-width: 480px) {
    .login-box {
        width: 90%;
        padding: 20px;
        margin: 10px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }

    .input-group input {
        padding: 8px;
        font-size: 14px;
    }

    .input-group label {
        font-size: 14px;
    }

    .remember-forgot {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .login-btn {
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .login-box {
        width: 70%;
        padding: 30px;
    }
}

@media screen and (max-height: 600px) {
    .login-box {
        margin: 20px 0;
        padding: 20px;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .login-header {
        margin-bottom: 20px;
    }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .login-btn {
        min-height: 44px;
    }

    .input-group input {
        min-height: 44px;
    }

    .remember-forgot label,
    .remember-forgot a {
        padding: 8px 0;
    }
}

/* Add smooth transitions for responsive changes */
.login-box, 
.input-group input, 
.login-btn {
    transition: all 0.3s ease-in-out;
}
#otpForm, #passwordForm {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.error-message {
    background-color: #ffcccc;
    color: #d9534f;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}


