﻿* {
    box-sizing: border-box;
}


/* =========================================
   BODY
   ========================================= */

.auth-double-body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient( circle at top left, rgba(37, 99, 235, 0.16), transparent 34% ), linear-gradient( 135deg, #eef5ff 0%, #f8fafc 48%, #eef2ff 100% );
    font-family: "Segoe UI", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}


/* =========================================
   BACK HOME
   ========================================= */

.auth-back-home {
    position: fixed;
    top: 22px;
    left: 28px;
    z-index: 200;
}


    .auth-back-home a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 42px;
        padding: 0 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid #dce7f5;
        color: #334155;
        text-decoration: none;
        font-weight: 800;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }


/* =========================================
   MAIN BOX
   ========================================= */

.auth-double-container {
    position: relative;
    overflow: hidden;
    width: 1060px;
    max-width: calc(100% - 40px);
    min-height: 600px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}


/* =========================================
   FORM SIDE
   ========================================= */

.auth-form-container {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #ffffff;
    transition: transform 0.65s ease, opacity 0.3s ease, visibility 0.3s ease;
}


.auth-sign-in-container {
    left: 0;
    z-index: 3;
    opacity: 1;
    visibility: visible;
}


.auth-sign-up-container {
    left: 0;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* =========================================
   KHI CHUYỂN SANG ĐĂNG KÝ
   ========================================= */

.auth-double-container.right-panel-active
.auth-sign-in-container {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}


.auth-double-container.right-panel-active
.auth-sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 5;
}


/* =========================================
   FORM
   ========================================= */

.auth-form {
    height: 100%;
    padding: 54px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}


    .auth-form h1 {
        margin: 0 0 10px;
        color: #1f2937;
        font-size: 40px;
        line-height: 1.08;
        font-weight: 950;
        letter-spacing: -0.8px;
    }


.auth-subtitle {
    margin: 0 0 26px;
    color: #7b8aa0;
    font-size: 16px;
    line-height: 1.5;
}


.auth-form label {
    margin-bottom: 8px;
    color: #263241;
    font-size: 15px;
    font-weight: 850;
}


/* =========================================
   INPUT
   ========================================= */

.auth-input-group {
    width: 100%;
    min-height: 54px;
    margin-bottom: 14px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border: 1px solid #dce5f0;
    border-radius: 15px;
    background: #ffffff;
    transition: 0.18s ease;
}


    .auth-input-group:focus-within {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    }


    .auth-input-group input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        color: #1f2937;
        font-size: 15.5px;
    }


        .auth-input-group input::placeholder {
            color: #9aa8ba;
        }


/* =========================================
   CLEAN SVG ICONS
   ========================================= */

.auth-field-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-right: 13px;
    display: inline-block;
    background: #64748b;
    opacity: 0.75;
}


.auth-icon-email {
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}


.auth-icon-lock {
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='10' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='10' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}


.auth-icon-user {
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}


.auth-icon-check {
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* =========================================
   OPTIONS
   ========================================= */

.auth-form-options {
    margin: 2px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}


.auth-remember {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 15px;
    font-weight: 800 !important;
}


    .auth-remember input {
        width: 16px;
        height: 16px;
    }


.auth-form-options a {
    color: #2563eb;
    font-weight: 850;
    text-decoration: none;
}


    .auth-form-options a:hover {
        text-decoration: underline;
    }


/* =========================================
   BUTTON
   ========================================= */

.auth-main-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 15px;
    background: linear-gradient( 135deg, #1677ff, #4d5bd5 );
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    transition: 0.18s ease;
}


    .auth-main-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
    }


    .auth-main-btn:active {
        transform: translateY(0);
    }


/* =========================================
   ADMIN NOTE
   ========================================= */

.auth-admin-note {
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 14.5px;
}


    .auth-admin-note strong {
        display: block;
        margin-bottom: 6px;
        font-weight: 900;
    }


    .auth-admin-note span {
        color: #2563eb;
        font-weight: 950;
    }


/* =========================================
   OVERLAY
   ========================================= */

.auth-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 100;
    overflow: hidden;
    width: 50%;
    height: 100%;
    transition: transform 0.65s ease;
}


.auth-double-container.right-panel-active
.auth-overlay-container {
    transform: translateX(-100%);
}


.auth-overlay {
    position: relative;
    left: -100%;
    width: 200%;
    height: 100%;
    background: radial-gradient( circle at top left, rgba(255, 255, 255, 0.22), transparent 34% ), linear-gradient( 135deg, #1681ff 0%, #2f63e6 48%, #273f9d 100% );
    color: #ffffff;
    transform: translateX(0);
    transition: transform 0.65s ease;
}


.auth-double-container.right-panel-active
.auth-overlay {
    transform: translateX(50%);
}


.auth-overlay-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.65s ease;
}


.auth-overlay-left {
    transform: translateX(-20%);
}


.auth-double-container.right-panel-active
.auth-overlay-left {
    transform: translateX(0);
}


.auth-overlay-right {
    right: 0;
    transform: translateX(0);
}


.auth-double-container.right-panel-active
.auth-overlay-right {
    transform: translateX(20%);
}


/* =========================================
   LOGO
   ========================================= */

.auth-logo-box {
    margin-bottom: 78px;
    display: flex;
    align-items: center;
    gap: 15px;
}


    .auth-logo-box span {
        width: 54px;
        height: 54px;
        border-radius: 15px;
        background: linear-gradient( 135deg, #06b6d4, #2563eb );
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 26px;
        font-weight: 950;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    }


    .auth-logo-box strong {
        color: #ffffff;
        font-size: 29px;
        font-weight: 950;
        letter-spacing: -0.5px;
    }


.auth-overlay-panel h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 43px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.8px;
}


.auth-overlay-panel p {
    max-width: 420px;
    margin: 0 0 32px;
    color: rgba( 255, 255, 255, 0.9 );
    font-size: 17px;
    line-height: 1.75;
}


.auth-ghost-btn {
    width: 210px;
    height: 52px;
    border: 2px solid rgba( 255, 255, 255, 0.9 );
    border-radius: 999px;
    background: rgba( 255, 255, 255, 0.10 );
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    transition: 0.18s ease;
}


    .auth-ghost-btn:hover {
        background: #ffffff;
        color: #2563eb;
    }


/* =========================================
   VALIDATION
   ========================================= */

.auth-validation {
    margin-bottom: 12px;
    font-weight: 700;
}


/* =========================================
   MOBILE SWITCH
   ========================================= */

.auth-mobile-switch {
    display: none;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .auth-double-body {
        padding: 78px 0 32px;
        align-items: flex-start;
    }


    .auth-double-container {
        min-height: auto;
        overflow: visible;
        border-radius: 22px;
    }


    .auth-form-container {
        position: relative;
        width: 100%;
        height: auto;
        transform: none !important;
        opacity: 1;
        visibility: visible;
    }


    .auth-sign-up-container {
        display: none;
    }


    .auth-double-container.right-panel-active
    .auth-sign-in-container {
        display: none;
    }


    .auth-double-container.right-panel-active
    .auth-sign-up-container {
        display: block;
    }


    .auth-overlay-container {
        display: none;
    }


    .auth-form {
        padding: 38px 26px;
    }


        .auth-form h1 {
            font-size: 34px;
        }


    .auth-mobile-switch {
        display: block;
        margin-top: 20px;
        text-align: center;
        color: #64748b;
    }


        .auth-mobile-switch button {
            border: none;
            background: transparent;
            color: #2563eb;
            font-weight: 950;
        }
}


/* =========================================
   FIX: KHÔNG CHO FORM ĐĂNG NHẬP
   ĐÈ LÊN FORM ĐĂNG KÝ
   ========================================= */

.auth-double-container.right-panel-active
.auth-sign-in-container {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}


.auth-double-container.right-panel-active
.auth-sign-up-container {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}


/* =========================================
   FIX ICON INPUT GỌN HƠN,
   KHÔNG DÙNG EMOJI
   ========================================= */

.auth-input-group > span:not(.auth-field-icon) {
    display: none !important;
}


.auth-field-icon {
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px !important;
    flex-shrink: 0;
    background-color: #8a97aa;
    opacity: 0.8;
}


/* ===== LƯU Ý: ĐĂNG NHẬP BẰNG GOOGLE ===== */


/* FORM EMAIL VÀ FORM GOOGLE */

.auth-login-form,
.auth-google-form {
    width: 100%;
}


/* KHUNG GOOGLE */

.auth-google-wrapper {
    width: 100%;
}


/* =========================================
   DÒNG "HOẶC"
   ========================================= */

.auth-social-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}


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


/* =========================================
   NÚT GOOGLE
   ========================================= */

.auth-google-btn {
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    background: #ffffff;
    color: #263241;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}


    .auth-google-btn:hover {
        border-color: #a9b8ca;
        background: #f8fafc;
        box-shadow: 0 7px 20px rgba(15, 23, 42, 0.10);
        transform: translateY(-1px);
    }


    .auth-google-btn:active {
        transform: translateY(0);
    }


/* ICON GOOGLE */

.auth-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}


    .auth-google-icon svg {
        display: block;
        width: 22px;
        height: 22px;
    }


/* =========================================
   THU GỌN RIÊNG FORM ĐĂNG NHẬP
   ĐỂ GOOGLE KHÔNG BỊ ĐẨY RA NGOÀI
   ========================================= */

.auth-sign-in-container
.auth-form {
    padding: 26px 56px;
    justify-content: center;
}


    .auth-sign-in-container
    .auth-form h1 {
        margin-bottom: 6px;
        font-size: 37px;
    }


.auth-sign-in-container
.auth-subtitle {
    margin-bottom: 12px;
}


.auth-sign-in-container
.auth-input-group {
    min-height: 48px;
    margin-bottom: 7px;
}


.auth-sign-in-container
.auth-form label {
    margin-bottom: 6px;
}


.auth-sign-in-container
.auth-form-options {
    margin: 5px 0 11px;
}


.auth-sign-in-container
.auth-main-btn {
    height: 50px;
}


.auth-sign-in-container
.auth-admin-note {
    margin-top: 12px;
    padding: 9px 14px;
    font-size: 13px;
}


    .auth-sign-in-container
    .auth-admin-note strong {
        margin-bottom: 3px;
    }


/* =========================================
   GOOGLE RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .auth-sign-in-container
    .auth-form {
        padding: 32px 26px;
    }


        .auth-sign-in-container
        .auth-form h1 {
            font-size: 34px;
        }


    .auth-google-btn {
        min-height: 48px;
    }


    .auth-social-divider {
        margin: 16px 0 12px;
    }


    .auth-sign-in-container
    .auth-admin-note {
        margin-top: 14px;
    }
}


/* ===== KẾT THÚC ĐĂNG NHẬP BẰNG GOOGLE ===== */
/* ===== LƯU Ý: XÁC NHẬN TÀI KHOẢN GOOGLE ===== */

.auth-google-email-confirm {
    position: relative;
}


    .auth-google-email-confirm input[readonly] {
        color: #334155;
        background: #f8fafc;
        cursor: default;
    }


.auth-google-verified {
    width: 26px;
    height: 26px;
    margin-left: 10px;
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}


.auth-google-email-note {
    margin: -4px 0 22px;
    color: #7b8aa0;
    font-size: 13px;
    line-height: 1.5;
}

/* ===== KẾT THÚC XÁC NHẬN TÀI KHOẢN GOOGLE ===== */


/* ===== LƯU Ý: LOGO MINISMARTSTORE TRANG TÀI KHOẢN ===== */
.auth-logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .auth-logo-box .auth-logo-img {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        object-fit: contain !important;
        display: block !important;
        flex: 0 0 64px !important;
    }

    .auth-logo-box strong {
        position: relative;
        z-index: 2;
    }
/* ===== KẾT THÚC LOGO MINISMARTSTORE TRANG TÀI KHOẢN ===== */


