/* ================================================
   Thiên Long Order — Login / Auth pages
   Standalone, đồng bộ phong cách trang chủ
   ================================================ */

/* ── Layout ── */
.tlo-auth-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.tlo-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #fff4e6;
}

/* ── Left panel (brand) ── */
.tlo-auth-left {
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(182,58,25,.84) 0%, rgba(106,47,26,.93) 100%),
        url('/sites/thienlongorder/home/img/box-home-2-bg.webp') center/cover no-repeat;
    color: #fff;
}

.tlo-auth-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(241,167,44,.22) 0%, transparent 60%);
    pointer-events: none;
}

.tlo-auth-logo-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    border: 2px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    overflow: hidden;
    flex-shrink: 0;
}

.tlo-auth-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tlo-auth-left h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .4px;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.25;
}

.tlo-auth-left .brand-tagline {
    font-size: .92rem;
    color: rgba(255,255,255,.88);
    text-align: center;
    line-height: 1.65;
    max-width: 300px;
}

.tlo-auth-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 300px;
}

.tlo-auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .87rem;
    color: rgba(255,255,255,.9);
}

.tlo-auth-features li .feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ── Right panel (form) ── */
.tlo-auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #fffcf8;
}

.tlo-auth-box {
    width: 100%;
    max-width: 420px;
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: #a0522d;
    text-decoration: none;
    margin-bottom: 28px;
    opacity: .7;
    transition: opacity .2s;
}

.auth-back-home:hover { opacity: 1; color: #a0522d; }

.auth-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #3a1e0e;
    margin-bottom: 6px;
    line-height: 1.25;
}

.auth-subtitle {
    font-size: .9rem;
    color: #7a5040;
    margin-bottom: 28px;
}

.tlo-auth-box .form-label {
    font-weight: 600;
    font-size: .83rem;
    color: #4a3126;
    margin-bottom: 6px;
}

.tlo-auth-box .form-control {
    border: 1.5px solid #e8d5c4;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: .92rem;
    background: #fff;
    color: #3a1e0e;
    transition: border-color .2s, box-shadow .2s;
}

.tlo-auth-box .form-select {
    border: 1.5px solid #e8d5c4;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: .92rem;
    background-color: #fff;
    color: #3a1e0e;
}

.tlo-auth-box .form-select:focus {
    border-color: #b63a19;
    box-shadow: 0 0 0 3px rgba(182,58,25,.12);
    outline: none;
}

.tlo-auth-box .form-control:focus {
    border-color: #b63a19;
    box-shadow: 0 0 0 3px rgba(182,58,25,.12);
    outline: none;
}

.tlo-auth-box .input-group .form-control {
    border-right: 0;
    border-radius: 10px 0 0 10px;
}

.tlo-auth-box .input-group-text {
    border: 1.5px solid #e8d5c4;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #fff;
    color: #a07050;
    cursor: pointer;
    transition: color .2s;
}

.tlo-auth-box .input-group-text:hover { color: #b63a19; }

.tlo-auth-box .input-group:focus-within .input-group-text {
    border-color: #b63a19;
    box-shadow: 0 0 0 3px rgba(182,58,25,.12);
}

.tlo-auth-box .input-group:focus-within .form-control { box-shadow: none; }

.btn-tlo-login {
    background: linear-gradient(120deg, #c4421e, #8c2e10);
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
    width: 100%;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 8px 20px rgba(182,58,25,.28);
}

.btn-tlo-login:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(182,58,25,.34);
    color: #fff;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c8a990;
    font-size: .8rem;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ead9cc;
}

.auth-register-row {
    text-align: center;
    font-size: .9rem;
    color: #7a5040;
}

.auth-register-row a {
    color: #b63a19;
    font-weight: 700;
    text-decoration: none;
}

.auth-register-row a:hover { text-decoration: underline; }

.auth-forgot-link {
    font-size: .8rem;
    color: #b63a19;
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot-link:hover { text-decoration: underline; }

.tlo-auth-alert-box {
    text-align: center;
}

.tlo-auth-alert-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #b63a19;
    background: rgba(182,58,25,.1);
    border: 1px solid rgba(182,58,25,.18);
}

.tlo-auth-box .form-check-input:checked {
    background-color: #b63a19;
    border-color: #b63a19;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .tlo-auth-page { flex-direction: column; }

    .tlo-auth-left {
        flex: none;
        padding: 36px 24px 32px;
    }

    .tlo-auth-logo-wrap {
        width: 90px;
        height: 90px;
        margin-bottom: 16px;
    }

    .tlo-auth-left h2 { font-size: 1.3rem; }

    .tlo-auth-features { display: none; }

    .tlo-auth-right { padding: 32px 20px 48px; }
}
