/* ====================================
   Login Page Custom Styles
   ==================================== */
.login-container {
    min-height: 100vh; 
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto; 
    background-color: #fff;
    display: flex;
}

.text-danger {
    color: #dc3545 !important;
}

.login-left-panel {
    background-color: #062C47;
    height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.login-left-panel .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}

.login-logo-box {
    margin-bottom: 0rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-logo-icon {
    font-size: 3rem;
    color: #fff;
    /* background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15); */
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    transform: rotate(45deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-logo-icon img {
    transform: rotate(-45deg);
}

.login-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.login-title-wrapper h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 0.5rem;
}

.login-title-wrapper p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.login-features-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    color: #fff;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item span {
    font-size: 0.95rem;
    margin-right: 1rem;
    text-align: right;
    font-weight: 500;
}

.feature-item .icon-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.login-right-panel {
    height: 100vh;
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-y: scroll;
}

.login-right-panel::-webkit-scrollbar {
    direction: ltr;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form-logo {
    margin-bottom: 1.5rem;
    display: flex;
    background: #062C47;
    width: 85px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 24px;
}

.login-form-logo > img {
    width: 70px;
    object-fit: cover;
}

.login-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #062C47;
    margin-bottom: 0.5rem;
    text-align: start;
}

.login-form-subtitle {
    color: #777;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    text-align: start;
}

.login-input-group {
    margin-bottom: 1rem;
    text-align: right;
}

.login-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #062C47;
    font-size: 0.85rem;
    text-align: right;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s;
    text-align: right;
    direction: ltr; /* Email often LTR even in RTL layouts, but placeholder might be RTL */
}

/* RTL Support for inputs */
html[dir="rtl"] .login-input {
    text-align: right;
}
html[dir="rtl"] .login-input[type="email"] {
    direction: ltr; /* Keep email LTR */
    text-align: right;
}

.login-input:focus {
    border-color: #85B2BD;
    outline: none;
    box-shadow: 0 0 0 3px rgba(133, 178, 189, 0.1);
}

.login-submit-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #062C47; /* Muted Blue User requested */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.login-submit-btn:hover,
.login-submit-btn:focus,
.login-submit-btn:active {
    background-color: #85B2BD;
}

.login-footer-links {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #333;
}

.login-footer-links a {
    color: #062C47;
    font-weight: 600;
    text-decoration: none;
}

.login-bottom-nav {
    position: absolute;
    bottom: 5rem;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: #999;
    font-size: 0.8rem;
}

.login-bottom-nav a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.login-bottom-nav a:hover {
    color: #062C47;
}

@media (max-width: 991px) {
    .login-container {
        flex-direction: column-reverse; /* Put form on top on mobile? Or standard column */
        height: auto;
        overflow-y: auto;
    }
    
    .login-container {
      flex-direction: column;
    }

    .login-left-panel {
        min-height: 500px;
        padding: 3rem 1.5rem;
        flex: none;
        width: 100%;
        order: 2; /* Show features below form on mobile, or order: 0 for top */
    }
    
    .login-right-panel {
        min-height: 100vh;
        padding: 3rem 1.5rem;
        flex: none;
        width: 100%;
        order: 1;
    }
}

/* Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(1px);
}

.login-modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px; /* Slightly wider for the modal */
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close Button (if used) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* Modal Steps */


.modal-step h3 {
    margin-bottom: 0.5rem;
    color: #062C47;
    font-weight: 700;
}

.modal-step p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Icon Circle */
.modal-icon-circle {
    width: 60px;
    height: 60px;
    background: #F3F6F8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #062C47;
    font-size: 1.5rem;
}

/* Code Inputs */
.code-inputs-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    direction: ltr; /* Ensure inputs flow left-to-right visually */
}

.code-input {
    width: 40px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #062C47;
}

.code-input:focus {
    border-color: #062C47;
    outline: none;
    box-shadow: 0 0 0 2px rgba(6, 44, 71, 0.1);
}

/* Dots Indicator */
.modal-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-dots .dot {
    width: 8px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 50%;
    transition: 0.3s;
}

.modal-dots .dot.active {
    background: #062C47;
    width: 20px;
    border-radius: 10px;
}

/* Modal Footer Links */
.modal-footer-link a {
    color: #062C47; /* Or muted blue */
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Field Icons */
.field-icon {
    position: absolute;
    left: 15px; /* RTL layout, icon on left inside input */
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none; /* Let clicks pass through */
}

html[dir="rtl"] .field-icon {
    left: 15px;
    right: auto;
}

/* Customize input padding for icon */
html[dir="rtl"] .login-input {
    /* If we have icon on left, we don't strictly need extra padding on right unless icon is there */
}

/* override input styles for modal if needed */
.login-modal .login-input {
   /* margin-bottom is handled by group */
}
