/* ===== AUTH LOGIN / REGISTER - CLEAN VERSION ===== */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}

/* ===== LEFT VISUAL ===== */
.auth-visual {
    min-height: 100vh;
    padding: 56px 60px;

    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(255, 182, 120, 0.30),
            rgba(255, 140, 66, 0.16) 18%,
            transparent 38%
        ),

        radial-gradient(
            circle at 6% 92%,
            rgba(255, 175, 90, 0.22),
            rgba(255, 140, 66, 0.10) 20%,
            transparent 42%
        ),

        linear-gradient(
            135deg,
            #1E5FBE 0%,
            #0A3F8F 100%
        );

    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;
    position: relative;
}

.auth-visual::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    top: -180px;
    right: -160px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.32), transparent 68%);

    pointer-events: none;
}

.auth-visual::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    left: -120px;
    bottom: -130px;

    background:
        radial-gradient(
            circle,
            rgba(255, 176, 110, 0.16) 0%,
            rgba(255, 140, 66, 0.06) 32%,
            transparent 72%
        );

    pointer-events: none;
}

.auth-logo-card {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    margin-bottom: 48px;
}

.auth-logo-img {
    width: 50px;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

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

.auth-logo-title {
    color: var(--primary-dark);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.auth-logo-sub {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.25;
}

.auth-brand h1 {
    font-size: 35px;
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.auth-brand p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.6;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
}

.auth-feature {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-feature span {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(255, 102, 56, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.auth-feature b {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.auth-feature p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 3px;
}

/* ===== RIGHT FORM ===== */
.auth-form-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 56px;
    background: #fff;
}

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

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 50px;
    padding: 5px;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 28px;
}

.auth-tab {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-desc {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 8px;
}

.auth-group {
    margin-top: 18px;
}

.auth-group label {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.auth-group label em {
    color: var(--danger);
    font-style: normal;
}

.auth-group input {
    width: 100%;
    height: 48px;
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
}

.auth-group input::placeholder {
    color: #7b7b7b;
}

.auth-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 95, 190, 0.1);
}

.auth-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.auth-input-btn {
    display: grid;
    grid-template-columns: 1fr 82px;
    gap: 10px;
    margin-bottom: 4px;
}

.auth-input-btn button {
    height: 48px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 22px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.auth-options input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.auth-options a {
    color: var(--text-sub);
    white-space: nowrap;
}

.auth-submit {
    width: 100%;
    height: 52px;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-divider {
    position: relative;
    margin: 22px 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 14px;
}

/* ===== SOCIAL LOGIN: GOOGLE + FACEBOOK ONLY ===== */
.auth-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-socials button {
    position: relative;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    padding: 0 12px 0 34px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-socials button .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    object-fit: contain;
    transform: translateY(-50%);
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 500;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: auto;
        padding: 40px 24px;
        gap: 36px;
    }

    .auth-form-area {
        min-height: auto;
        padding: 36px 20px;
    }
}

@media (max-width: 640px) {
    .auth-visual {
        display: none;
    }

    .auth-form-area {
        min-height: 100vh;
        padding: 24px 18px;
    }

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

    .auth-tabs {
        height: 46px;
        margin-bottom: 28px;
    }

    .auth-tab {
        font-size: 14px;
    }

    .auth-form h2 {
        font-size: 24px;
    }

    .auth-desc {
        font-size: 13px;
    }

    .auth-group {
        margin-top: 14px;
    }

    .auth-group input {
        height: 46px;
        font-size: 14px;
    }

    .auth-input-btn {
        grid-template-columns: 1fr 74px;
        gap: 8px;
    }

    .auth-input-btn button {
        height: 46px;
        font-size: 12px;
    }

    .auth-socials {
        grid-template-columns: 1fr;
    }

    .auth-socials button {
        padding-left: 38px;
    }

    .auth-socials button .icon {
        left: 14px;
    }
}

.auth-show-password{
    margin-top: 10px;
}

.auth-show-password label{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.auth-show-password input{
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

/* ======================================================
   Login/Register Error Message
====================================================== */
#loginMessage {
    display: none;
}

#loginMessage.is-show {
    display: block;

    margin: 14px 0 18px;
    padding: 11px 14px;

    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    background: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 14px;
}

.auth-message-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-message-text.info {
    color: #6b7280;
}

.auth-message-text.success {
    color: #16a34a;
}

.auth-message-text.error {
    color: #dc2626;
}
/* =========================
   Language Switch
========================= */

.auth-language-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 18px;
    gap: 10px;
}

.lang-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-item:hover {
    background: #e7eefc;
    color: #0d4ea6;
}

.lang-item.active {
    background: #eaf1ff;
    color: #0d4ea6;
}

.lang-divider {
    width: 1px;
    height: 14px;
    background: #d8dee8;
}

/* ===== AUTH FINAL SCALE OVERRIDE ===== */
.auth-box {
    max-width: 500px;
    transform: translateY(18px);
}

.auth-tabs {
    height: 54px;
}

.auth-tab {
    font-size: 16px;
}

.auth-form h2 {
    font-size: 44px;
    line-height: 1.16;
    margin-bottom: 10px;
}

.auth-desc {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 10px;
}

.auth-group {
    margin-top: 20px;
}

.auth-group label {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-group input {
    height: 58px;
    padding: 0 18px;
    font-size: 18px;
    border-radius: 12px;
}

.auth-group input::placeholder {
    font-size: 17px;
}

.auth-input-btn {
    grid-template-columns: 1fr 138px;
}

.auth-input-btn button {
    height: 58px;
    font-size: 16px;
}

.auth-show-password label {
    font-size: 15px;
}

.auth-submit {
    height: 62px;
    font-size: 20px;
    border-radius: 14px;
}

.auth-switch {
    font-size: 15px;
}

.auth-switch a {
    font-size: 16px;
}

.lang-item {
    min-width: 42px;
    height: 38px;
    font-size: 14px;
}

/* Register form compact */
#registerForm h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

#registerForm .auth-desc {
    font-size: 16px;
    margin-bottom: 8px;
}

#registerForm .auth-group {
    margin-top: 16px;
}

#registerForm .auth-group input,
#registerForm .auth-input-btn button {
    height: 54px;
}

#registerForm .auth-group small {
    font-size: 14px;
    margin-top: 6px;
}

#registerForm .auth-submit {
    height: 58px;
    margin-top: 22px;
}

/* ===== AUTH FINAL SCALE OVERRIDE - BALANCED WITH MAIN SITE ===== */
.auth-box {
    max-width: 500px;
    transform: translateY(12px);
}

.auth-tabs {
    height: 54px;
}

.auth-tab {
    font-size: 16px;
}

.auth-form h2 {
    font-size: 40px;
    line-height: 1.18;
    margin-bottom: 30px;
}

.auth-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.auth-group {
    margin-top: 18px;
}

.auth-group label {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-group input {
    height: 56px;
    padding: 0 18px;
    font-size: 17px;
    border-radius: 12px;
}

.auth-group input::placeholder {
    font-size: 16px;
}

.auth-input-btn {
    grid-template-columns: 1fr 132px;
}

.auth-input-btn button {
    height: 56px;
    font-size: 15px;
}

.auth-show-password label {
    font-size: 14px;
}

.auth-submit {
    height: 58px;
    font-size: 18px;
    border-radius: 14px;
}

.auth-switch {
    font-size: 15px;
}

.auth-switch a {
    font-size: 16px;
}

.lang-item {
    min-width: 42px;
    height: 38px;
    font-size: 14px;
}

/* Register form compact */
#registerForm h2 {
    font-size: 40px;
    margin-bottom: 30px;
}

#registerForm .auth-desc {
    font-size: 16px;
    margin-bottom: 8px;
}

#registerForm .auth-group {
    margin-top: 15px;
}

#registerForm .auth-group input,
#registerForm .auth-input-btn button {
    height: 54px;
}

#registerForm .auth-group small {
    font-size: 14px;
    margin-top: 6px;
}

#registerForm .auth-submit {
    height: 58px;
    margin-top: 22px;
}

/* ===== AUTH LOGO CARD - ENLARGE 20% ===== */

.auth-logo-card {
    gap: 16px;
    padding: 16px 22px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.auth-logo-img {
    width: 62px;
    height: 62px;
    border-radius: 16px;
}

.auth-logo-title {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.auth-logo-sub {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

.auth-logo-img {
    width: 62px;
    height: 62px;
    border-radius: 18px;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    overflow: hidden;

    box-shadow:
        0 6px 16px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.auth-logo-img img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    display: block;
}

/* ===== AUTH LOGIN VISUAL IMAGE UPDATE ===== */

.auth-visual {
    background: #f8efe3;
    color: #111827;
}

.auth-visual-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0.92;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(255, 248, 238, 0.92) 0%,
            rgba(255, 248, 238, 0.76) 42%,
            rgba(255, 248, 238, 0.34) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.58) 0%,
            rgba(255, 255, 255, 0.18) 48%,
            rgba(255, 246, 232, 0.72) 100%
        );
}

.auth-brand,
.auth-feature-list {
    position: relative;
    z-index: 2;
}

.auth-visual::before,
.auth-visual::after {
    display: none;
}

.auth-logo-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-logo-title {
    color: #111827;
}

.auth-logo-sub {
    color: #64748b;
}

.auth-brand h1 {
    color: #111827;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.45);
}

.auth-brand h1 span,
.auth-brand h1 strong {
    color: var(--primary);
}

.auth-brand p {
    color: #1f2937;
    font-weight: 600;
}

.auth-feature {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(209, 213, 219, 0.88);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-feature span {
    background: #eef4ff;
}

.auth-feature b {
    color: #111827;
}

.auth-feature p {
    color: #475569;
}


/* =========================
   Auth Page Topbar
========================= */

.auth-page-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.auth-page-back-home{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#6b7280;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:all .2s ease;
}

.auth-page-back-home:hover{
    color:var(--primary);
}

.auth-page-back-home svg{
    width:18px;
    height:18px;
    flex-shrink:0;
}

/* Language */
.auth-page-language-switch{
    display:flex;
    align-items:center;
    gap:10px;
}

.auth-page-lang-item{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:72px;
    height:42px;
    padding:0 16px;
    border-radius:999px;
    background:#eef2ff;
    color:#2563eb;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    transition:all .2s ease;
}

.auth-page-lang-item:hover{
    background:#dfe7ff;
}

.auth-page-lang-item.active{
    background:#2563eb;
    color:#fff;
}

.auth-page-lang-divider{
    width:1px;
    height:16px;
    background:#d1d5db;
}

.auth-page-lang-flag{
    width:20px;
    height:14px;
    object-fit:cover;
    border-radius:2px;
    flex-shrink:0;
    box-shadow:0 0 0 1px rgba(0,0,0,.06);
}

/* Mobile */
@media (max-width:768px){

    .auth-page-topbar{
        margin-bottom:16px;
    }

    .auth-page-lang-item{
        min-width:66px;
        height:40px;
        padding:0 13px;
        font-size:14px;
    }

    .auth-page-lang-flag{
        width:20px;
        height:14px;
    }

    .auth-page-back-home{
        font-size:14px;
    }
}

