/* ================================================================
   ThanhLong Account Theme — Custom Layout
   Two-panel Login + 3-section Register
   Bright gold (#f1c40f) + Cyan (#00eaff) accent
   ================================================================ */

/* ===================== LOGIN — Two-panel Split ===================== */
.tl-login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #0d0d14;
}

/* Left branding panel */
.tl-login-branding {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0, 234, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(241, 196, 15, 0.06) 0%, transparent 60%),
        linear-gradient(160deg, #0a0a12 0%, #0f1020 50%, #0d0d18 100%);
    border-right: 1px solid rgba(0, 234, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tl-login-branding::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 234, 255, 0.4), rgba(241, 196, 15, 0.2), transparent);
}

.tl-login-brand-content {
    text-align: center;
}

.tl-login-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 234, 255, 0.2));
}

.tl-login-server-name,
.tl-login-brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f1c40f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
    margin-bottom: 0.5rem;
}

.tl-login-tagline,
.tl-login-brand-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 280px;
    line-height: 1.6;
    margin: 0 auto;
}

.tl-login-decoration {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.tl-deco-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.3), transparent);
}

.tl-deco-diamond {
    font-size: 0.6rem;
    color: #00eaff;
    opacity: 0.7;
}

/* Right form panel */
.tl-login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 234, 255, 0.03) 0%, transparent 70%),
        #0d0d14;
}

.tl-login-form-inner,
.tl-login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.tl-login-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1c40f;
    margin-bottom: 0.35rem;
}

.tl-login-form-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2rem;
}

.tl-login-form-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #00eaff;
    margin-top: 1rem;
    border-radius: 2px;
}

/* ===================== REGISTER — 3-section Card ===================== */
.tl-register-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 234, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(241, 196, 15, 0.05) 0%, transparent 50%),
        #0d0d14;
}

.tl-register-card {
    width: 100%;
    max-width: 720px;
    background: rgba(13, 13, 20, 0.95);
    border: 1px solid rgba(0, 234, 255, 0.12);
    border-radius: 16px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 234, 255, 0.04);
    position: relative;
}

.tl-register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00eaff, transparent);
    border-radius: 2px;
}

/* Register header */
.tl-register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tl-register-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.tl-register-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.tl-register-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1c40f;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tl-register-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1c40f;
    margin: 0.5rem 0 0.25rem;
}

.tl-register-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Register sections */
.tl-register-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 234, 255, 0.08);
}

.tl-register-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.tl-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.tl-section-icon {
    font-size: 1.1rem;
    color: #00eaff;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 234, 255, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.tl-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tl-section-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tl-field-full {
    grid-column: 1 / -1;
}

/* ===================== SHARED FORM ELEMENTS ===================== */
.tl-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.tl-section-fields .tl-form-group {
    margin-bottom: 0;
}

.tl-form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tl-form-input,
.tl-form-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 234, 255, 0.1);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.tl-form-input:focus,
.tl-form-select:focus {
    border-color: #00eaff;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 234, 255, 0.08), 0 0 12px rgba(0, 234, 255, 0.06);
}

.tl-form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.tl-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300eaff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
}

.tl-form-select option {
    background: #0d0d14;
    color: #e8e8e8;
}

/* Submit button */
.tl-btn-submit {
    display: block;
    width: auto;
    padding: 0.8rem 2.5rem;
    margin: 1.5rem auto 0;
    background: linear-gradient(135deg, #f1c40f, #d4a04a);
    color: #0d0d14;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tl-btn-submit:hover {
    background: linear-gradient(135deg, #f5d020, #f1c40f);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.tl-btn-submit:active {
    transform: translateY(0);
}

.tl-btn-submit-wide {
    width: 100%;
}

/* Captcha row */
.tl-captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tl-captcha-input {
    flex: 1;
    max-width: 160px;
}

.tl-captcha-img {
    height: 42px;
    border-radius: 6px;
    border: 1px solid rgba(0, 234, 255, 0.15);
    cursor: pointer;
    transition: opacity 0.2s;
}

.tl-captcha-img:hover {
    opacity: 0.85;
}

.tl-captcha-refresh {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 234, 255, 0.06);
    border: 1px solid rgba(0, 234, 255, 0.15);
    border-radius: 6px;
    color: #00eaff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tl-captcha-refresh:hover {
    background: rgba(0, 234, 255, 0.12);
    border-color: #00eaff;
}

/* Links */
.tl-login-links,
.tl-register-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 234, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.tl-login-links a,
.tl-register-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.tl-login-links a:hover,
.tl-register-links a:hover {
    color: #00eaff;
}

/* Error styling */
.tl-login-page .account-error,
.tl-register-page .account-error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.form-error {
    color: #e74c3c;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    /* Login: stack panels */
    .tl-login-page {
        flex-direction: column;
    }

    .tl-login-branding {
        flex: none;
        padding: 2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 234, 255, 0.1);
    }

    .tl-login-branding::after {
        display: none;
    }

    .tl-login-logo-img {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .tl-login-server-name,
    .tl-login-brand-title {
        font-size: 1.3rem;
    }

    .tl-login-form-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Register: stack fields */
    .tl-field-row {
        grid-template-columns: 1fr;
    }

    .tl-register-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .tl-login-branding {
        padding: 1.5rem 1rem;
    }

    .tl-login-tagline,
    .tl-login-brand-tagline {
        display: none;
    }

    .tl-login-form-panel {
        padding: 1.5rem 1rem;
    }

    .tl-register-page {
        padding: 1rem 0.5rem;
    }

    .tl-register-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .tl-captcha-row {
        flex-wrap: wrap;
    }

    .tl-captcha-input {
        max-width: none;
        flex: 1 1 100%;
    }
}
