/* Login Page - Split Layout (Image Left | Form Right) */

body.login-body {
    margin: 0;
    overflow-x: hidden;
}

.login-split {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

[dir="rtl"] .login-split {
    flex-direction: row-reverse;
}

/* Language toggle - fixed top end */
.login-lang-wrap {
    position: fixed;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 10;
}

.login-lang-wrap #languageToggle {
    background: rgba(255,255,255,0.9);
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.login-lang-wrap #languageToggle:hover {
    background: #fff;
    border-color: var(--primary-purple, #444392);
}

/* ========== LEFT: Image panel ========== */
.login-split-image {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    background: url("../img/loginImage.jpg") center center / cover no-repeat;
    background-color: #1e1e3a;
}

.login-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(68, 67, 146, 0.82) 0%,
        rgba(53, 53, 112, 0.88) 50%,
        rgba(30, 30, 60, 0.92) 100%
    );
}

.login-image-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-image-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.login-image-logo .logo-hub {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-image-logo .logo-panel {
    background: #fff;
    color: var(--primary-purple, #444392);
    font-size: 1.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    margin-inline-start: 3px;
    letter-spacing: -0.02em;
}

.login-image-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin: 1rem 0 0;
    max-width: 280px;
    line-height: 1.5;
}

.login-image-quote {
    margin: 1.5rem 0;
}

.login-image-quote .fa-quote-right {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.login-image-quote blockquote {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    border: none;
    font-style: normal;
    max-width: 320px;
}

.login-image-dots {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 1.5rem;
}

.login-image-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.25s;
}

.login-image-dots .dot.active {
    width: 24px;
    background: rgba(255, 255, 255, 0.95);
}

/* ========== RIGHT: Form panel ========== */
.login-split-form {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
}

.login-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.35rem;
}

.login-form-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 1.75rem;
}

/* Labels */
.login-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.4rem;
}

/* Input with icon */
.login-input-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.login-input-wrap input {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-inline-end: 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-wrap input:focus {
    outline: none;
    border-color: var(--primary-purple, #444392);
    box-shadow: 0 0 0 3px rgba(68, 67, 146, 0.12);
}

.login-input-wrap .input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 1rem;
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
}

/* Password row: label + Forgot link */
.login-input-wrap .d-flex .login-label {
    margin-bottom: 0;
}

.login-input-wrap .login-forgot {
    font-size: 0.85rem;
    color: var(--primary-purple, #444392);
    text-decoration: none;
}

.login-input-wrap .login-forgot:hover {
    text-decoration: underline;
    color: var(--dark-purple, #353570);
}

/* Remember me */
.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    margin-bottom: 1.35rem;
}

.login-remember input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary-purple, #444392);
    cursor: pointer;
}

/* Sign In button */
.login-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-purple, #444392);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.login-btn:hover {
    background: var(--dark-purple, #353570);
    color: #fff;
}

.login-btn:active {
    transform: scale(0.99);
}

/* Footer: Don't have an account? Signup */
.login-footer {
    text-align: center;
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.login-footer a {
    color: var(--primary-purple, #444392);
    font-weight: 600;
    text-decoration: none;
    margin-inline-start: 0.25rem;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ========== Responsive: stack on small screens ========== */
@media (max-width: 991px) {
    .login-split {
        flex-direction: column;
    }

    [dir="rtl"] .login-split {
        flex-direction: column;
    }

    .login-split-image {
        min-height: 38vh;
    }

    .login-image-tagline,
    .login-image-quote {
        display: none;
    }

    .login-image-content {
        justify-content: space-between;
        padding: 1.5rem 1.5rem 1rem;
    }

    .login-split-form {
        padding: 2rem 1.25rem 2.5rem;
    }
}

@media (max-width: 575px) {
    .login-split-image {
        min-height: 28vh;
    }

    .login-image-logo .logo-hub,
    .login-image-logo .logo-panel {
        font-size: 1.4rem;
    }
}
