﻿.tl-login-layout {
    width: min(1120px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(420px, 0.88fr) minmax(540px, 1.12fr);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(15, 39, 71, 0.08);
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(15, 39, 71, 0.11);
}

.tl-login-layout {
    width: min(1180px, calc(100% - 36px));
    min-height: 690px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    margin: 35px auto;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--tl-border);
    background: var(--tl-card);
    box-shadow: 0 30px 90px rgba(15, 39, 71, 0.14);
}


/* =========================================================
   Brand Panel
   ========================================================= */

.tl-login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 52px 50px;
    background: linear-gradient( 145deg, #0e2d50 0%, #123d6b 55%, #0c2949 100% );
    color: #ffffff;
}

    .tl-login-brand-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.10;
        background-image: radial-gradient( circle at 1px 1px, #ffffff 1px, transparent 0 );
        background-size: 24px 24px;
    }

.tl-login-brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.tl-login-brand-glow-one {
    width: 360px;
    height: 360px;
    top: -150px;
    left: -120px;
    background: rgba(183, 140, 57, 0.16);
}

.tl-login-brand-glow-two {
    width: 280px;
    height: 280px;
    right: -110px;
    bottom: -90px;
    background: rgba(51, 107, 176, 0.16);
}

.tl-login-brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tl-login-brand-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(231, 199, 120, 0.28);
    background: rgba(231, 199, 120, 0.08);
    color: #e7c778;
    font-size: 11px;
    font-weight: 700;
}

.tl-login-brand-heading {
    margin-top: 58px;
}

.tl-login-brand-eyebrow {
    display: block;
    color: #e7c778;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.tl-login-brand-heading h1 {
    margin: 8px 0 12px;
    font-size: 39px;
    font-weight: 900;
    line-height: 1.35;
}

.tl-login-brand-heading p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 2;
}

.tl-login-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 45px;
}

.tl-login-feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
}

.tl-login-feature-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(231, 199, 120, 0.10);
    color: #e7c778;
}

.tl-login-feature strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.tl-login-feature span {
    color: rgba(255, 255, 255, 0.61);
    font-size: 10px;
    line-height: 1.7;
}

.tl-login-brand-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 32px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 9px;
}

    .tl-login-brand-footer i {
        color: #e7c778;
    }


/* =========================================================
   Form Panel
   ========================================================= */

.tl-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px 64px;
    background: #ffffff;
}

.tl-login-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.tl-login-mobile-brand {
    display: none;
}

.tl-login-form-header {
    margin-bottom: 27px;
}

.tl-login-welcome {
    display: block;
    margin-bottom: 4px;
    color: var(--tl-gold);
    font-size: 11px;
    font-weight: 800;
}

.tl-login-form-header h2 {
    margin: 0 0 6px;
    color: var(--tl-text);
    font-size: 29px;
    font-weight: 900;
}

.tl-login-form-header p {
    margin: 0;
    color: var(--tl-muted);
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   Fields
   ========================================================= */

.tl-login-field {
    margin-bottom: 18px;
}

    .tl-login-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--tl-text);
        font-size: 11px;
        font-weight: 700;
    }

.tl-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tl-login-forgot {
    color: var(--tl-gold);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

    .tl-login-forgot:hover {
        text-decoration: underline;
    }

.tl-login-input-wrapper {
    position: relative;
}

.tl-login-input-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 15px;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--tl-muted);
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.tl-login-input {
    min-height: 51px;
    padding-inline-start: 44px;
    padding-inline-end: 16px;
    border-radius: 13px;
    border: 1px solid var(--tl-border);
    background: var(--tl-bg);
    color: var(--tl-text);
    font-size: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tl-login-password-input {
    padding-inline-end: 48px;
}

.tl-login-input:focus {
    border-color: rgba(183, 140, 57, 0.75);
    background: var(--tl-card);
    box-shadow: 0 0 0 4px rgba(183, 140, 57, 0.09);
}

.tl-login-input::placeholder {
    color: var(--tl-muted);
    opacity: 0.65;
}

.tl-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--tl-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

    .tl-password-toggle:hover {
        color: var(--tl-gold);
        background: rgba(183, 140, 57, 0.07);
    }


/* =========================================================
   Options
   ========================================================= */

.tl-login-options {
    display: flex;
    justify-content: space-between;
    margin: 4px 0 22px;
}

.tl-login-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--tl-muted);
    font-size: 10px;
    cursor: pointer;
}


/* =========================================================
   Login Button
   ========================================================= */

.tl-login-submit {
    width: 100%;
    min-height: 51px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient( 135deg, #0f2d51, #153d6d );
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 45, 81, 0.14);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

    .tl-login-submit:hover {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(15, 45, 81, 0.20);
    }


/* =========================================================
   Divider
   ========================================================= */

.tl-login-divider {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 25px 0 19px;
}

    .tl-login-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        height: 1px;
        background: var(--tl-border);
    }

    .tl-login-divider span {
        position: relative;
        z-index: 2;
        padding: 0 10px;
        background: var(--tl-card);
        color: var(--tl-muted);
        font-size: 9px;
    }


/* =========================================================
   Register
   ========================================================= */

.tl-login-register {
    display: flex;
    justify-content: center;
    gap: 5px;
    color: var(--tl-muted);
    font-size: 10px;
}

    .tl-login-register a {
        color: var(--tl-gold);
        text-decoration: none;
        font-weight: 800;
    }

        .tl-login-register a:hover {
            text-decoration: underline;
        }


/* =========================================================
   Security Note
   ========================================================= */

.tl-login-security-note {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 7px;
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid var(--tl-border);
    color: var(--tl-muted);
    font-size: 9px;
    line-height: 1.7;
    text-align: center;
}

    .tl-login-security-note i {
        margin-top: 2px;
        color: var(--tl-gold);
    }


/* =========================================================
   Alert
   ========================================================= */

.tl-login-alert {
    margin-bottom: 19px;
    border-radius: 12px;
    font-size: 10px;
}


/* =========================================================
   Dark Mode
   ========================================================= */

[data-theme="dark"] .tl-login-layout {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .tl-login-input {
    background: rgba(255, 255, 255, 0.025);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 950px) {

    .tl-login-layout {
        grid-template-columns: 1fr;
        max-width: 590px;
    }

    .tl-login-brand-panel {
        display: none;
    }

    .tl-login-form-panel {
        padding: 45px;
    }

    .tl-login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 35px;
    }

    .tl-login-mobile-logo {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: var(--tl-navy);
        color: var(--tl-gold);
    }

    .tl-login-mobile-brand strong {
        display: block;
        color: var(--tl-text);
        font-size: 14px;
    }

    .tl-login-mobile-brand span {
        display: block;
        color: var(--tl-muted);
        font-size: 9px;
    }
}

@media (max-width: 600px) {

    .tl-login-layout {
        width: calc(100% - 20px);
        min-height: 0;
        margin: 10px auto;
        border-radius: 22px;
    }

    .tl-login-form-panel {
        padding: 31px 22px;
    }

    .tl-login-form-header h2 {
        font-size: 24px;
    }
}
