/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica', sans-serif;
    background-color: rgb(0, 162, 199);
    color: rgb(45, 51, 58);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Header */
.header {
    padding: 24px 32px;
    display: flex;
    align-items: center;
}

.logo {
    height: 33px;
    width: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* Login Box */
.login-box {
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgb(45, 51, 58);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    color: rgb(45, 51, 58);
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(104, 104, 104);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgb(0, 125, 153);
}

.form-input::placeholder {
    color: rgb(113, 113, 113);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 60px;
}

.password-toggle {
    position: absolute;
    right: 0;
    height: 52px;
    width: 60px;
    background: transparent;
    border: none;
    color: rgb(0, 125, 153);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background-color: rgba(0, 125, 153, 0.05);
}

/* Form Actions */
.form-actions {
    margin-bottom: 24px;
    text-align: right;
}

.forgot-link {
    color: rgb(0, 123, 173);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    height: 52px;
    background-color: rgb(0, 125, 153);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background-color: rgb(0, 110, 135);
}

.submit-btn:active {
    background-color: rgb(0, 95, 117);
}

.submit-btn:disabled {
    background-color: rgb(104, 104, 104);
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: rgb(254, 242, 242);
    border: 1px solid rgb(254, 202, 202);
    border-radius: 6px;
    color: rgb(185, 28, 28);
    font-size: 14px;
}

/* Signup Link */
.signup-link {
    margin-top: 24px;
    text-align: center;
}

.signup-link a {
    color: rgb(255, 255, 255);
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 24px 32px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    color: rgb(255, 255, 255);
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .separator {
    color: rgb(255, 255, 255);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }
    
    .login-box {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .footer {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 16px;
    }
    
    .login-box {
        padding: 24px 16px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 4px;
    }
    
    .footer-links .separator {
        display: none;
    }
}


/* OTP Page Specific Styles */
.otp-title {
    font-size: 24px;
    font-weight: 700;
    color: rgb(45, 51, 58);
    margin-bottom: 12px;
    text-align: center;
}

.otp-description {
    font-size: 14px;
    color: rgb(113, 113, 113);
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.5;
}

.otp-input {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
}

.otp-help {
    margin-top: 24px;
    text-align: center;
}

.resend-link {
    color: rgb(0, 123, 173);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.resend-link:hover {
    text-decoration: underline;
}

/* Success Message */
.success-message {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: rgb(240, 253, 244);
    border: 1px solid rgb(167, 243, 208);
    border-radius: 6px;
    color: rgb(22, 101, 52);
    font-size: 14px;
    text-align: center;
}
