/* ================================================================
   ThanhLong Account Theme v2 — Modern Glassmorphism
   Login + Register pages
   ================================================================ */

/* ---------- Page background ---------- */
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Noto Sans', sans-serif;
    color: #e8e0c8;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(241, 196, 15, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 90%, rgba(193, 97, 30, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0805 0%, #15100a 50%, #080604 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent 0 20px, rgba(241, 196, 15, 0.012) 20px 21px),
        repeating-linear-gradient(-45deg, transparent 0 20px, rgba(241, 196, 15, 0.012) 20px 21px);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Back to home button ---------- */
.account-back {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    color: #f1c40f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: rgba(20, 14, 8, 0.65);
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.account-back:hover {
    color: #fce588;
    border-color: #f9d923;
    background: rgba(241, 196, 15, 0.1);
    transform: translateX(-3px);
}

/* =============================================================
   LOGIN — Two panel
   ============================================================= */
.tl-login-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* Left branding panel */
.tl-login-branding {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 30%, rgba(241, 196, 15, 0.12) 0%, transparent 60%),
        linear-gradient(135deg, #1a1108 0%, #0d0805 100%);
}

.tl-login-branding::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/_content/WebPage.Core/images/logo.png");
    background-size: 460px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    filter: sepia(1) saturate(2);
}

.tl-login-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.tl-login-logo-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(241, 196, 15, 0.45));
    animation: tlFloat 4s ease-in-out infinite;
}

@keyframes tlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.tl-login-brand-title {
    margin: 28px 0 12px;
    color: #f9d923;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, #fce588, #c9a20c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tl-login-brand-tagline {
    color: #c9b88a;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.02em;
}

.tl-login-decoration {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tl-deco-line {
    flex: 0 0 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f1c40f, transparent);
}

.tl-deco-diamond {
    color: #f9d923;
    font-size: 14px;
    text-shadow: 0 0 12px rgba(241, 196, 15, 0.6);
}

/* Right form panel */
.tl-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background:
        radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.tl-login-form-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 44px 40px;
    background: rgba(20, 14, 8, 0.55);
    border: 1px solid rgba(241, 196, 15, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
}

.tl-login-form-wrapper::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.5), transparent 30%, transparent 70%, rgba(241, 196, 15, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.tl-login-form-title {
    margin: 0 0 6px;
    color: #f9d923;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tl-login-form-subtitle {
    color: #9d8c63;
    font-size: 14px;
    margin: 0 0 28px;
}

/* =============================================================
   FORM CONTROLS (shared by Login + Register)
   ============================================================= */
.tl-form-group {
    margin-bottom: 18px;
    position: relative;
}

.tl-form-label {
    display: block;
    color: #c9b88a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.tl-form-input,
.tl-form-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(8, 5, 3, 0.7);
    border: 1px solid rgba(241, 196, 15, 0.25);
    border-radius: 8px;
    color: #f1e4bd;
    font-size: 14.5px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tl-form-input::placeholder { color: #5e5235; }

.tl-form-input:focus,
.tl-form-select:focus {
    outline: none;
    border-color: #f9d923;
    background: rgba(15, 10, 5, 0.9);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.12);
}

.tl-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f1c40f' viewBox='0 0 16 16' width='14' height='14'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.tl-form-select option {
    background: #14100a;
    color: #f1e4bd;
}

/* Submit button */
.tl-btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: 1px solid rgba(241, 196, 15, 0.6);
    border-radius: 8px;
    background: linear-gradient(180deg, #f9d923 0%, #d3a712 50%, #a87d0c 100%);
    color: #1a120a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
    box-shadow: 0 6px 18px rgba(241, 196, 15, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tl-btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.tl-btn-submit:active { transform: translateY(0); }

.tl-btn-submit-wide { font-size: 16px; padding: 16px; }

/* Error / Validation */
.account-error,
.form-error,
.field-validation-error {
    display: block;
    color: #ff7e7e;
    font-size: 12.5px;
    margin-top: 5px;
}

.account-error {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(255, 87, 87, 0.08);
    border: 1px solid rgba(255, 87, 87, 0.3);
    border-radius: 6px;
}

.account-error:empty,
.field-validation-valid { display: none; }

/* Bottom links */
.tl-login-links {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(241, 196, 15, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tl-login-links a {
    color: #c9b88a;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.tl-login-links a:hover { color: #f9d923; }

.tl-link-register { font-weight: 700; color: #f1c40f !important; }
.tl-link-forgot { color: #9d8c63 !important; font-size: 12.5px; }

/* =============================================================
   REGISTER — Card layout
   ============================================================= */
.tl-register-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 70px 24px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.tl-register-card {
    width: 100%;
    max-width: 760px;
    padding: 40px 48px;
    background: rgba(20, 14, 8, 0.55);
    border: 1px solid rgba(241, 196, 15, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.tl-register-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.5), transparent 30%, transparent 70%, rgba(241, 196, 15, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.tl-register-header {
    text-align: center;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.18);
    margin-bottom: 26px;
}

.tl-register-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 18px;
}

.tl-register-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(241, 196, 15, 0.5));
}

.tl-register-logo-text {
    color: #f9d923;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tl-register-title {
    margin: 0 0 6px;
    color: #fce588;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tl-register-subtitle {
    color: #9d8c63;
    font-size: 14px;
    margin: 0;
}

.tl-register-section {
    margin-bottom: 24px;
    padding: 22px;
    background: rgba(8, 5, 3, 0.4);
    border: 1px solid rgba(241, 196, 15, 0.12);
    border-radius: 12px;
}

.tl-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(241, 196, 15, 0.2);
}

.tl-section-icon {
    font-size: 18px;
    color: #f9d923;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.tl-section-title {
    color: #f9d923;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tl-section-fields { display: block; }

.tl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tl-field-full { width: 100%; }

/* Captcha row */
.tl-captcha-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: stretch;
}

.tl-captcha-input { width: 100%; }

.tl-captcha-img {
    height: 46px;
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 8px;
    background: #14100a;
    cursor: pointer;
}

.tl-captcha-refresh {
    width: 46px;
    height: 46px;
    background: rgba(241, 196, 15, 0.1);
    color: #f9d923;
    border: 1px solid rgba(241, 196, 15, 0.4);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.tl-captcha-refresh:hover {
    background: rgba(241, 196, 15, 0.2);
    transform: rotate(180deg);
}

.tl-register-links { margin-top: 24px; justify-content: center; }
.tl-register-links a {
    color: #c9b88a;
    text-decoration: none;
    font-size: 14px;
}

.tl-register-links a:hover { color: #f9d923; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
    .tl-login-page { grid-template-columns: 1fr; }
    .tl-login-branding { padding: 40px 20px; min-height: 240px; }
    .tl-login-brand-title { font-size: 28px; }
    .tl-login-form-panel { padding: 30px 20px; }
}

@media (max-width: 600px) {
    .tl-login-form-wrapper { padding: 30px 24px; }
    .tl-register-card { padding: 28px 22px; }
    .tl-register-title { font-size: 20px; }
    .tl-field-row { grid-template-columns: 1fr; gap: 0; }
    .account-back { top: 12px; left: 12px; padding: 7px 14px; font-size: 13px; }
    .tl-register-page { padding-top: 60px; }
}
