/* Login Page Specific Styles */

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* OTP Form */
.otp-instruction {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.otp-container {
    margin-bottom: 2rem;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1rem;
}

.otp-digit {
    width: 50px;
    height: 60px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.otp-digit:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.otp-digit.filled {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

/* OTP Visibility Toggle */
.otp-visibility {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.otp-visibility input[type="checkbox"] {
    display: none;
}

.otp-visibility label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.otp-visibility label:hover {
    color: #4CAF50;
}

.otp-visibility input[type="checkbox"]:checked + label {
    color: #4CAF50;
}

/* OTP Actions */
.otp-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.resend-btn {
    background: none;
    border: 2px solid #e1e5e9;
    color: #666;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resend-btn:hover:not(:disabled) {
    border-color: #4CAF50;
    color: #4CAF50;
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-actions .submit-btn {
    flex: 1;
    margin-top: 0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card > * {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .otp-digit {
        width: 45px;
        height: 55px;
        font-size: 1.3rem;
    }

    .otp-actions {
        flex-direction: column;
    }

    .resend-btn {
        order: 2;
        margin-top: 1rem;
    }

    .otp-actions .submit-btn {
        order: 1;
    }
}

@media (max-width: 480px) {
    .otp-digit {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }

    .login-card h2 {
        font-size: 1.7rem;
    }
}