/* Premium login layout */
.guest-login-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.guest-login-page {
    position: relative;
    min-height: 100vh;
    padding: 32px 20px;
}

.guest-login-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 38%),
        radial-gradient(circle at bottom right, rgba(217, 83, 79, 0.14), transparent 32%);
    opacity: 0.9;
}

.login-page-shell {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.login-page-shell .login-split-layout {
    width: min(1360px, 100%);
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(380px, 460px);
    align-items: center;
    gap: 28px;
}

.login-page-shell .login-split-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    position: relative;
}

.login-page-shell .login-page-tools {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
}

.login-page-shell .login-page-tools .language-switcher {
    transform: scale(0.92);
    transform-origin: top right;
}

.login-page-shell .login-split-left {
    position: relative;
    min-height: 500px;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    padding: 16px 6px;
}

.login-page-shell .login-split-left::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(5, 10, 18, 0.66) 0%, rgba(5, 10, 18, 0.30) 56%, rgba(5, 10, 18, 0.12) 100%),
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.11), transparent 24%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.login-page-shell .login-split-left::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background:
        radial-gradient(circle at 22% 62%, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at 66% 38%, rgba(255, 255, 255, 0.05), transparent 20%);
    pointer-events: none;
}

.login-page-shell .login-left-content {
    position: relative;
    z-index: 1;
    width: min(670px, 100%);
    padding: 22px 0 22px 28px;
    display: grid;
    gap: 12px;
}

.login-page-shell .login-left-badge,
.login-page-shell .login-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.login-page-shell .login-left-title {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 40ch;
    font-weight: 800;
}

.login-page-shell .login-left-subtitle {
    margin: 0;
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.6;
}

.login-page-shell .login-left-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.login-page-shell .login-left-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.login-page-shell .login-card-wrapper {
    width: min(420px, 100%);
    margin-left: auto;
    margin-top: 34px;
}

.login-page-shell .login-card-wrapper .card-body {
    padding: 28px 28px 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 42px rgba(2, 6, 23, 0.16) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.login-brand-link {
    display: inline-flex;
    align-items: center;
}

.login-brand-link .header-brand-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-brand-link:hover .header-brand-img {
    transform: translateY(-1px);
    opacity: 0.92;
}

.login-page-shell .login-card-wrapper .login100-form-title {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.login-page-shell .login-card-wrapper .login100-form {
    width: 100%;
}

.login-page-shell .login-card-wrapper p.text-center.mb-4 {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #6b7280;
}

.login-page-shell .login-card-wrapper .wrap-input100 {
    margin-bottom: 12px;
}

.login-page-shell .login-card-wrapper .input100 {
    min-height: 48px;
    font-size: 0.92rem;
    padding-left: 54px;
    padding-right: 46px;
}

.login-page-shell .login-card-wrapper .symbol-input100 {
    width: 42px;
    font-size: 1rem;
}

.login-page-shell .login-card-wrapper .focus-input100 {
    border-radius: 12px;
}

.login-page-shell .login-card-wrapper .container-login100-form-btn {
    margin-top: 6px;
}

.login-page-shell .login-card-wrapper .login100-form-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #a8d45a 0%, #8bbf3b 100%);
    box-shadow: 0 12px 24px rgba(139, 191, 59, 0.24);
}

.login-page-shell .login-card-wrapper .login100-form-btn:hover {
    box-shadow: 0 16px 28px rgba(139, 191, 59, 0.3);
}

.login-page-shell .login-card-wrapper .alert {
    border-radius: 14px;
}

.login-page-shell .login-card-wrapper .text-primary.ms-1 {
    font-size: 0.88rem;
    font-weight: 600;
}

.login-page-shell .login-verification-callout {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.18);
}

.login-page-shell .login-password-wrap {
    position: relative;
}

.login-page-shell .login-password-wrap .password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #64748b;
    z-index: 5;
    border-radius: 999px;
}

.login-page-shell .login-password-wrap .password-toggle-btn:hover {
    color: #0f172a;
}

.dark-mode .login-page-shell .login-password-wrap .password-toggle-btn {
    color: rgba(203, 213, 225, 0.8);
}

.dark-mode .login-page-shell .login-password-wrap .password-toggle-btn:hover {
    color: #fff;
}

.language-switcher {
    position: relative;
}

.language-switcher-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.language-switcher-button:hover {
    color: #0f172a;
    border-color: rgba(14, 165, 183, 0.28);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.dark-mode .language-switcher-button {
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.16);
}

.dark-mode .language-switcher-button:hover {
    color: #fff;
}

.language-switcher-flag {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.language-switcher-flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-switcher-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    text-align: left;
}

.language-switcher-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.dark-mode .language-switcher-label {
    color: rgba(148, 163, 184, 0.78);
}

.language-switcher-value {
    font-size: 0.84rem;
    font-weight: 700;
}

.language-switcher-chevron {
    color: #64748b;
    font-size: 0.8rem;
}

.dark-mode .language-switcher-chevron {
    color: rgba(148, 163, 184, 0.82);
}

.language-switcher-modal .modal-content {
    border-radius: 24px;
    border: 0;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.3);
}

.language-switcher-modal {
    z-index: 1105;
}

.language-switcher-modal .modal-dialog,
.language-switcher-modal .modal-content {
    pointer-events: auto;
}

.language-switcher-list {
    display: grid;
    gap: 10px;
}

.language-switcher-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.language-switcher-option:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 183, 0.32);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.dark-mode .language-switcher-option {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(148, 163, 184, 0.16);
    color: #f8fafc;
}

.language-switcher-option-flag {
    width: 36px;
    height: 26px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}

.language-switcher-option-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
}

.language-switcher-option-title {
    font-weight: 700;
}

.language-switcher-option-subtitle {
    font-size: 0.88rem;
    color: #64748b;
}

.dark-mode .language-switcher-option-subtitle {
    color: rgba(148, 163, 184, 0.82);
}

@media (max-width: 991.98px) {
    .guest-login-page {
        padding: 18px 12px;
    }

    .login-page-shell {
        min-height: auto;
        padding: 0;
    }

    .login-page-shell .login-split-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .login-page-shell .login-split-left {
        min-height: 180px;
        padding: 0;
    }

    .login-page-shell .login-split-left::before,
    .login-page-shell .login-split-left::after {
        border-radius: 24px;
    }

    .login-page-shell .login-left-content {
        padding: 20px 16px;
        width: 100%;
    }

    .login-page-shell .login-left-chips {
        grid-template-columns: 1fr;
    }

    .login-page-shell .login-split-right {
        align-items: stretch;
        padding-top: 34px;
    }

    .login-page-shell .login-card-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .login-page-shell .login-page-tools {
        top: 8px;
        right: 8px;
    }

    .login-page-shell .login-card-wrapper .card-body {
        padding: 24px 18px;
        border-radius: 18px;
    }
}

@media (max-width: 575.98px) {
    .login-page-shell .login-page-tools {
        width: 100%;
    }

    .language-switcher-button {
        width: 100%;
        justify-content: space-between;
    }

    .login-page-shell .login-left-title {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .login-page-shell .login-card-wrapper .container-login100-form-btn,
    .login-page-shell .login-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-page-shell .login-card-wrapper .login100-form-btn {
        width: 100%;
    }
}
