/* Blue Website Landing Page Styles (index.css) */

body {
    background: url('../images/white_room_5.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

/* Existing styles continue... */

body {
    background: url('../images/white_room_5.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.logo-section {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 500px;
    z-index: 1;
}

.logo-section img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.center-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#login-center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

#center-flex-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background: none;
}

#login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.login-box {
    width: 350px;
    background: #fff;
    box-shadow: 8px 8px 4px rgba(0,0,0,0.5);
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-modal {
    width: 270px;
    background: #fff;
    box-shadow: 8px 8px 4px rgba(0,0,0,0.5);
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
}

/* Standalone Modal Overlays - Separate from modals */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    backdrop-filter: blur(3px);
    pointer-events: auto;
    display: none;
}

#modal-overlay.normal {
    background: rgba(8, 24, 61, 0.25);
}

#modal-overlay.error {
    background: rgba(255, 0, 0, 0.25);
}

/* Position forgot username, success, and error modals */
#forgot-username-modal,
#success-modal,
#error-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

/* Modal visibility management */
.modal-hidden {
    display: none !important;
}

/* Ensure all forgot password modals are properly hidden by default and positioned correctly when shown */
#forgot-password-modal,
#forgot-password-step2-modal,
#forgot-password-step3-modal,
#forgot-password-step4-modal,
#forgot-password-step5-modal,
#forgot-password-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000; /* Above overlay which is z-index 9999 */
    border: 2px solid #0071BC;
}

#forgot-password-error-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000; /* Above overlay which is z-index 9999 */
    border: 2px solid #dc3545; /* Red border for error */
}

/* Block background interactions when overlay is active */
body.overlay-active * {
    pointer-events: none;
}

body.overlay-active #modal-overlay,
body.overlay-active #forgot-username-modal,
body.overlay-active #forgot-username-modal *,
body.overlay-active #success-modal,
body.overlay-active #success-modal *,
body.overlay-active #error-modal,
body.overlay-active #error-modal *,
body.overlay-active #forgot-password-modal,
body.overlay-active #forgot-password-modal *,
body.overlay-active #forgot-password-step2-modal,
body.overlay-active #forgot-password-step2-modal *,
body.overlay-active #forgot-password-step3-modal,
body.overlay-active #forgot-password-step3-modal *,
body.overlay-active #forgot-password-step4-modal,
body.overlay-active #forgot-password-step4-modal *,
body.overlay-active #forgot-password-step5-modal,
body.overlay-active #forgot-password-step5-modal *,
body.overlay-active #forgot-password-success-modal,
body.overlay-active #forgot-password-success-modal *,
body.overlay-active #forgot-password-error-modal,
body.overlay-active #forgot-password-error-modal *,
body.overlay-active #contact-support-modal,
body.overlay-active #contact-support-modal *,
body.overlay-active #contact-support-success-modal,
body.overlay-active #contact-support-success-modal * {
    pointer-events: auto;
}

.login-modal input[type="text"],
.login-modal input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: rgba(0,113,188,0.10);
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 300;
    color: #222;
}

.login-modal input::placeholder {
    color: #888;
    font-weight: 500;
    font-size: 14px;
}

.login-modal label {
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.login-modal .links {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    margin-bottom: 6px;
}

.login-modal .links a {
    color: #0071BC;
    text-decoration: underline;
    cursor: pointer;
}

.login-modal .remember {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 14px;
    color: #222;
}

.login-modal .remember input {
    margin-right: 6px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: calc(50% - 2px);
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.remember-me-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.remember-me-group label {
    margin: 0;
    font-size: 14px;
    color: #222;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
}

.login-modal button {
    width: 100%;
    height: 40px;
    background: #0071BC;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 0;
    margin-bottom: 0;
}

.login-modal button:hover {
    background: #1993e6;
}

.signup-link-group {
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

.signup-link {
    color: #0071BC;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
}

.login-modal .signup-text {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 0;
}

.login-modal .signup-link {
    text-align: center;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
}

.login-modal .signup-link a {
    color: #0071BC;
    text-decoration: underline;
    cursor: pointer;
}

/* Modal Header Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.close-modal {
    color: #0071BC;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #005fa3;
}

/* Error Modal Close Button */
#error-modal .close-modal {
    color: #dc3545;
}

#error-modal .close-modal:hover {
    color: #a71e2a;
}

/* Forgot Password Error Modal Close Button */
#forgot-password-error-modal .close-modal {
    color: #dc3545;
}

#forgot-password-error-modal .close-modal:hover {
    color: #a71e2a;
}

/* Forgot Username Modal Styles */
#forgot-username-modal {
    border: 2px solid #0071BC;
}

#forgot-username-modal .modal-header h2 {
    color: #0071BC;
}

#forgot-username-modal p {
    font-size: 14px;
    font-weight: 300;
    color: #222;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-align: left;
}

/* Success Modal Styles */
#success-modal {
    border: 2px solid #0071BC;
}

#success-modal button {
    width: 100px;
    height: 40px;
    background: #0071BC;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    margin: 0 auto;
    display: block;
}

#success-modal button:hover {
    background: #1993e6;
}

/* Error Modal Styles */
#error-modal {
    border: 2px solid #dc3545;
}

#error-modal h3 {
    font-size: 18px;
    color: #dc3545;
    text-align: left;
}

#error-modal p {
    text-align: left;
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    color: #222;
    line-height: 1.4;
}

#error-modal a {
    text-decoration: underline;
}

#error-modal a:hover {
    color: #005fa3;
}

/* Security Questions Styles */
.security-question-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #081839;
    font-size: 16px;
}

.security-skip-section {
    text-align: center;
}

.skip-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.skip-text a {
    color: #0066cc;
    text-decoration: none;
}

.skip-text a:hover {
    text-decoration: underline;
}

/* Verification Timer Styles */
.verification-timer-container {
    text-align: center;
}

.timer-text {
    font-size: 14px;
    color: #081839;
    margin: 5px 0;
    font-weight: bold;
}

.timer-text #verification-timer {
    color: #ff6600;
}

.resend-text {
    font-size: 14px;
    margin: 5px 0;
}

.resend-text a {
    color: #0066cc;
    text-decoration: none;
}

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

.resend-text a.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Verification Code Input Styling */
#verification-code {
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Password strength indicator (for future enhancement) */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
    padding: 5px;
    border-radius: 3px;
    text-align: center;
}

.strength-weak {
    background-color: #ffebee;
    color: #c62828;
}

.strength-medium {
    background-color: #fff3e0;
    color: #f57c00;
}

.strength-strong {
    background-color: #e8f5e8;
    color: #2e7d32;
}

/* Multi-step progress indicator (optional) */
.step-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.step-indicator.active {
    background-color: #0066cc;
    color: white;
}

.step-indicator.completed {
    background-color: #0071BC;
    color: white;
}

/* Additional spacing utilities */
.spacer-2 {
    height: 2px;
}

.spacer-5 {
    height: 5px;
}

.spacer-10 {
    height: 10px;
}

.spacer-15 {
    height: 15px;
}

.spacer-20 {
    height: 20px;
}

.spacer-25 {
    height: 25px;
}

.spacer-30 {
    height: 30px;
}

.spacer-35 {
    height: 35px;
}

/* Security question container */
#security-question-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    margin: 10px 0;
}

.relative-wrapper { position: relative; }

/* Safari Block */
#safari-block { display: none; }

/* Modal Display States */
.modal-hidden,
#forgot-username-modal,
#success-modal,
#error-modal {
    display: none;
}

/* Modal Content Styles */
.modal-content-padding {
    padding: 0 0 0 0;
}

.modal-content-text {
    text-align: left;
    margin: 0;
    font-size: 14px;
}

/* Success Modal Header */
.success-header,
#success-modal h3 {
    color: #0071BC;
    font-weight: bold;
    margin: 0;
}

/* Error Modal Header */
.error-header,
#error-modal h3 {
    color: #dc3545;
    font-weight: bold;
    margin: 0;
}

/* Feedback message styling */
.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

.warning {
    color: #ffc107;
}

/* Legacy compatibility - keep existing draggable-dot styles */
.draggable-dot {
    cursor: grab;
    transition: stroke 0.2s ease;
}

.draggable-dot:active {
    cursor: grabbing;
}

/* Signup Link Line Height */
.signup-link-custom {
    line-height: 1.2;
}

/* Contact Support Modal Styles */
#contact-support-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    border: 2px solid #0071BC;
}

#contact-support-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

#contact-support-modal textarea:focus {
    border-color: #0071BC;
    outline: none;
}

#contact-support-modal input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

/* Contact Support Success Modal Styles */
#contact-support-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    border: 2px solid #0071BC;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: static;
    }
    .logo-section {
        width: 100%;
        padding-left: 0;
        justify-content: center;
        margin-bottom: 30px;
        height: auto;
    }
    .center-section {
        height: auto;
    }
    #login-center-wrapper {
        position: static;
        min-height: auto;
    }
    #center-flex-wrapper {
        position: static;
        min-height: auto;
    }
    #login-container {
        height: auto;
    }
    .login-box {
        width: 95vw;
        min-width: 0;
    }
}

/* Forgot Password Modal Specific Styles */
#forgot-password-modal,
#forgot-password-step2-modal,
#forgot-password-step3-modal,
#forgot-password-step4-modal,
#forgot-password-success-modal {
    border: 2px solid #0071BC;
}

#forgot-password-error-modal {
    border: 2px solid #dc3545; /* Red border for error */
}

/* Forgot Password Modal Headers - Consistent 16px, 600 weight, left aligned */
#forgot-password-modal .modal-header h2,
#forgot-password-step2-modal .modal-header h2,
#forgot-password-step3-modal .modal-header h2,
#forgot-password-step4-modal .modal-header h2,
#forgot-password-success-modal .modal-header h3 {
    color: #0071BC;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

#forgot-password-error-modal .modal-header h3 {
    color: #dc3545; /* Red header for error */
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

/* Forgot Password Modal Text - 14px normal weight */
#forgot-password-modal p,
#forgot-password-step2-modal p,
#forgot-password-step3-modal p,
#forgot-password-step4-modal p,
#forgot-password-success-modal p,
#forgot-password-error-modal p {
    font-size: 14px;
    font-weight: 400;
    color: #222;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-align: left;
}

/* Forgot Password Input Fields - Ensure proper accessibility */
#forgot-password-modal input[type="text"],
#forgot-password-step2-modal input[type="text"],
#forgot-password-step4-modal input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #fff;
    cursor: text;
    pointer-events: auto;
    user-select: text;
    box-sizing: border-box;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Chrome-specific focus fixes */
    -webkit-user-select: text;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Ensure input is always interactive */
    z-index: 1;
    position: relative;
}

#forgot-password-modal input[type="text"]:focus,
#forgot-password-step2-modal input[type="text"]:focus,
#forgot-password-step4-modal input[type="text"]:focus {
    border-color: #0071BC;
    box-shadow: 0 0 0 2px rgba(0, 113, 188, 0.2);
    /* Force focus visibility in Chrome */
    outline: none;
}

/* Chrome-specific modal focus fixes */
#forgot-password-modal,
#forgot-password-step2-modal,
#forgot-password-step3-modal,
#forgot-password-step4-modal,
#forgot-password-step5-modal {
    /* Ensure modal doesn't interfere with input focus in Chrome */
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Chrome focus workaround - ensure forms don't interfere */
#forgot-password-step1-form,
#forgot-password-step2-form,
#forgot-password-step3-form,
#forgot-password-step4-form,
#forgot-password-step5-form {
    position: relative;
    z-index: 1;
}

/* Password Requirements Styling */
.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 12px;
    margin: 10px 0;
}

.requirement-text {
    font-size: 13px;
    font-weight: bold;
    color: #495057;
    margin: 0 0 8px 0;
}

.requirement-list {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
    color: #6c757d;
}

.requirement-list li {
    margin-bottom: 4px;
}
