:root {
    --tt-bronze-900: #2b1f15;
    --tt-bronze-800: #3b2a1d;
    --tt-bronze-700: #5b3a25;
    --tt-gold-500: #d89b32;
    --tt-gold-400: #e2ad55;
    --tt-gold-300: #f0c978;
    --tt-sand-100: #f8f1e6;
    --tt-panel: #fffdf9;
    --tt-muted: #7c6a57;
}

.tt-login-wrap {
    min-height: calc(100vh - 140px);
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-login-shell {
    width: 100%;
    max-width: 1080px;
    background: var(--tt-panel);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(43, 31, 21, 0.22);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tt-login-side {
    position: relative;
    padding: 42px 38px;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(216, 155, 50, 0.95), rgba(91, 58, 37, 0.94)),
        linear-gradient(40deg, #20160f, #4a301e);
}

.tt-side-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.06) 14px,
        transparent 14px,
        transparent 28px
    );
}

.tt-side-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 0 auto;
}

.tt-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
}

.tt-login-side h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 20px 0 14px;
    letter-spacing: 0.02em;
}

.tt-login-side p {
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.94);
}

.tt-side-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
}

.tt-login-panel {
    background: var(--tt-panel);
    padding: 34px 34px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tt-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}

.tt-logo-row-side {
    margin-bottom: 22px;
}

.tt-logo-row-side .tt-logo-slot {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 238, 211, 0.7);
}

.tt-logo-row-side .tt-logo-divider {
    background: rgba(255, 245, 226, 0.65);
}

.tt-logo-slot {
    width: 165px;
    height: 62px;
    border: 1px solid #ead8bb;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.tt-logo {
    max-height: 45px;
    max-width: 100%;
}

.tt-logo-divider {
    width: 1px;
    height: 42px;
    background: #d5c2a4;
}

.tt-logo-placeholder {
    background: linear-gradient(135deg, #f4ead9, #f9f3ea);
    border-style: dashed;
    color: var(--tt-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tt-panel-header h2 {
    font-size: 1.8rem;
    color: var(--tt-bronze-800);
    margin-bottom: 2px;
    font-weight: 800;
}

.tt-panel-header p {
    color: var(--tt-muted);
    margin-bottom: 22px;
}

.tt-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tt-field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--tt-bronze-700);
    margin-bottom: 8px;
}

.tt-input-wrap {
    border: 1px solid #d8c3a4;
    background: #fff;
    border-radius: 11px;
    display: flex;
    align-items: center;
    min-height: 50px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tt-input-wrap:focus-within {
    border-color: var(--tt-gold-500);
    box-shadow: 0 0 0 3px rgba(216, 155, 50, 0.2);
}

.tt-input-wrap i {
    color: var(--tt-gold-500);
    font-size: 1.1rem;
    padding-left: 14px;
    padding-right: 12px;
}

.tt-input-wrap input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #3e3023;
    font-weight: 600;
}

.tt-input-wrap input::placeholder {
    color: #b49d81;
    font-weight: 500;
}

.tt-pass-toggle {
    border: none;
    background: transparent;
    color: #b79057;
    padding: 0 14px;
    cursor: pointer;
}

.tt-pass-toggle:focus {
    outline: none;
}

.tt-captcha {
    background: #fbf5eb;
    border: 1px solid #ead8bb;
    border-radius: 10px;
    padding: 12px;
}

.tt-captcha label {
    display: block;
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tt-bronze-700);
    font-weight: 700;
}

.tt-captcha-row {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tt-captcha-img {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5d3b7;
    padding: 4px;
}

.tt-captcha input {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #d8c3a4;
    padding: 0 12px;
}

.tt-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tt-options .custom-control-label {
    color: var(--tt-muted);
    font-size: 0.9rem;
}

.tt-login-btn {
    margin-top: 4px;
    min-height: 50px;
    border: none;
    border-radius: 11px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(120deg, var(--tt-gold-500), var(--tt-bronze-700));
    box-shadow: 0 14px 24px rgba(91, 58, 37, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tt-login-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(91, 58, 37, 0.34);
}

.tt-login-foot {
    margin-top: 16px;
    color: #8d7a66;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.is-invalid {
    border-color: #b67722;
}

@media (max-width: 992px) {
    .tt-login-shell {
        grid-template-columns: 1fr;
    }

    .tt-login-side {
        min-height: 240px;
    }
}

@media (max-width: 576px) {
    .tt-login-wrap {
        padding: 12px 0;
    }

    .tt-login-panel,
    .tt-login-side {
        padding: 24px 18px;
    }

    .tt-logo-slot {
        width: 136px;
        height: 56px;
    }

    .tt-panel-header h2 {
        font-size: 1.45rem;
    }
}
