/* Login Page Specific Styles - Secure Version */
/* This file replaces all inline styles from login.html for CSP compliance */

/* Divider styles */
.login-divider {
    border-color: #333;
    margin: 1rem 0;
}

/* SSO text styles */
.sso-text {
    font-size: 0.9rem;
}

/* Version info styles */
.version-info {
    font-size: 0.75rem;
    color: #666;
    opacity: 0.8;
}

.version-info-latest {
    font-size: 0.7rem;
}

/* Modal styles */
.create-account-modal-content {
    background-color: #000;
    border: 1px solid var(--optimotive-orange);
}

/* Fix z-index for Create Account modal on login page */
#createAccountModal {
    z-index: 10000 !important;
}

#createAccountModal .modal-dialog {
    z-index: 10001 !important;
}

/* Fix modal backdrop colors - prevent blue background flash */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important;
    opacity: 1 !important;
}

.modal-backdrop.fade {
    opacity: 0 !important;
    transition: opacity 0.15s linear !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

/* Remove any blue tint from Bootstrap defaults */
.modal-backdrop.in {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Specific backdrop for create account modal on login page */
#createAccountModal ~ .modal-backdrop {
    z-index: 9999 !important;
}

/* Email error display */
.email-error-hidden {
    display: none;
}

/* Password instruction styles */
.password-instruction {
    color: var(--optimotive-orange);
}

/* Password strength meter */
.password-strength-hidden {
    display: none;
}

.password-strength-bar {
    height: 4px;
}

.password-strength-bar .progress-bar {
    width: 0%;
}

/* Password validation error */
.password-validation-hidden {
    display: none;
}

/* Password error display */
.password-error-hidden {
    display: none;
}

/* Verification modal styles */
.verification-modal-content {
    background-color: #000;
    border: 1px solid var(--optimotive-orange);
}

/* Fix z-index for Verification modal on login page */
#verificationModal {
    z-index: 10000 !important;
}

#verificationModal .modal-dialog {
    z-index: 10001 !important;
}

/* Verification icon */
.verification-icon {
    font-size: 3rem;
    color: var(--optimotive-orange);
}

/* Verification code input */
.verification-code-input {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
}

/* Verification error */
.verification-error-hidden {
    display: none;
}

/* Success modal styles */
.success-modal-content {
    background-color: #000;
    border: 1px solid #28a745;
}

/* Fix z-index for Success modal on login page */
#successModal {
    z-index: 10000 !important;
}

#successModal .modal-dialog {
    z-index: 10001 !important;
}

/* Success icon */
.success-icon {
    font-size: 3rem;
    color: #28a745;
}

/* Create Account button - Optimotive orange matching Bootstrap btn-warning style */
.btn-create-account-orange {
    color: #fff;
    background-color: #FE5000;
    border-color: #FE5000;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    display: inline-block;
}

.btn-create-account-orange:hover {
    color: #fff;
    background-color: #e64800;
    border-color: #d94400;
    text-decoration: none;
}

.btn-create-account-orange:focus,
.btn-create-account-orange.focus {
    color: #fff;
    background-color: #e64800;
    border-color: #d94400;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(254, 80, 0, 0.5);
}

.btn-create-account-orange:active,
.btn-create-account-orange.active {
    color: #fff;
    background-color: #cc4000;
    border-color: #b93a00;
}

.btn-create-account-orange:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Login backdrop and wrapper (if not already in app-styles.css) */
.login-page {
    overflow: hidden;
}

/* Additional utility classes for login page */
.text-warning {
    color: var(--optimotive-orange) !important;
}

.text-success {
    color: #28a745 !important;
}

/* Override bootstrap modal styles for dark theme */
.modal-header.border-secondary {
    border-color: #333 !important;
}

.modal-footer.border-secondary {
    border-color: #333 !important;
}

/* Form validation states */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Password toggle button styles */
.password-toggle-btn {
    background: transparent;
    border-color: #666;
}

.password-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Countdown timer styles */
.countdown-timer {
    color: var(--optimotive-orange);
    font-weight: bold;
}