/* Auth Module Additional Styles */

/* Common auth card styles */
.login-card { 
    max-width: 450px; 
}

/* Help text styles */
.help-text { 
    text-align: center; 
    color: #555; 
    font-size: 14px; 
    margin-bottom: 20px; 
}

.help-text.justify {
    text-align: justify;
}

/* Back link styles */
.back-link { 
    text-align: center; 
    margin-top: 20px; 
    font-size: 14px; 
}

.back-link a { 
    color: #2c7da0; 
    text-decoration: none; 
    font-weight: bold; 
}

.back-link a:hover { 
    text-decoration: underline; 
}

.back-link span {
    color: #666;
    font-weight: normal;
}

form .back-link {
    margin-top: 25px;
}

/* Logout link styles */
.logout-link { 
    text-align: center; 
    margin-top: 20px; 
    font-size: 14px; 
}

.logout-link a { 
    color: #dc3545; 
    text-decoration: none; 
    font-weight: bold; 
}

/* Email display */
.email-display { 
    font-weight: bold; 
    color: #333; 
}

/* Code input container for verify_reset */
.code-input-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.code-input-container input {
    width: 100%;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #ddd;
    letter-spacing: 10px;
    font-weight: bold;
    color: #333;
}

/* Password requirements for change_first_password */
.password-requirements { 
    font-size: 12px; 
    color: #666; 
    margin-top: 5px; 
}

.password-requirements ul { 
    margin: 5px 0; 
    padding-left: 20px; 
}

.password-requirements li { 
    margin: 2px 0; 
}

.password-requirements li.valid { 
    color: #28a745; 
}

.password-requirements li.invalid { 
    color: #dc3545; 
}

.password-match { 
    font-size: 12px; 
    margin-top: 5px; 
}

.password-match.valid { 
    color: #28a745; 
}

.password-match.invalid { 
    color: #dc3545; 
}

.form-group input.invalid { 
    border-color: #dc3545; 
}

.form-group input.valid { 
    border-color: #28a745; 
}

/* Form label with link */
.form-group label.with-link {
    display: flex;
    justify-content: space-between;
}

.form-group label.with-link a {
    font-size: 12px;
    color: #2c7da0;
    text-decoration: none;
    font-weight: normal;
}

/* Register link */
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.register-link a {
    color: #2c7da0;
    text-decoration: none;
    font-weight: bold;
}

/* Resend section */
.resend-section {
    text-align: center;
    margin-top: 20px;
}

.resend-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.resend-btn {
    background: none;
    border: none;
    color: #2c7da0;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.resend-btn:hover {
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

/* Back section */
.back-section {
    text-align: center;
    margin-top: 20px;
}

.back-link-button {
    color: #2c7da0;
    text-decoration: none;
    font-size: 14px;
}

.back-link-button:hover {
    text-decoration: underline;
}

/* Verification text */
.verification-text {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #2c7da0;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button loading state */
.login-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}
