/* =========================================================
   NC CORE AUTH - UNIVERSAL STYLE (POPUP & PAGE)
   ========================================================= */

/* --- A. PHẦN RIÊNG CHO POPUP (MODAL) --- */
#nc-auth-modal.nc-modal-overlay {
    position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    z-index: 999999 !important;
    display: none;
    align-items: center; justify-content: center;
}
#nc-auth-modal.active { display: flex !important; animation: ncPopupIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* Nút đóng chỉ hiện ở Popup */
.nc-close-inside {
    position: absolute !important; top: 15px !important; right: 15px !important;
    background: transparent !important; border: none !important;
    color: #999 !important; font-size: 30px !important;
    cursor: pointer; z-index: 1000; line-height: 1; padding: 0;
}
.nc-close-inside:hover { color: #333 !important; transform: scale(1.1); }


/* --- B. PHẦN RIÊNG CHO PAGE (INLINE) --- */
.nc-auth-inline-wrapper {
    display: flex; justify-content: center; align-items: center;
    padding: 60px 20px; background: #f0f2f5; min-height: 60vh;
}
/* Ở Page thì ẩn nút đóng */
.nc-auth-inline-wrapper .nc-close-inside,
.nc-auth-inline-wrapper .nc-close-outside { display: none !important; }


/* --- C. PHẦN CHUNG (CORE UI) - ÁP DỤNG CẢ 2 --- */

/* 1. HỘP CHỨA (THE BOX) */
.nc-auth-box {
    background: #fff !important; border-radius: 12px !important;
    display: flex !important; flex-direction: row !important;
    overflow: hidden; position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Định dạng kích thước riêng */
#nc-auth-modal .nc-auth-box {
    width: 900px !important; max-width: 95vw !important;
    height: auto !important; min-height: 550px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4) !important;
}
.nc-auth-inline-wrapper .nc-auth-box {
    width: 900px !important; max-width: 100% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    margin: 0 auto;
}

/* 2. CỘT TRÁI: BANNER (40%) */
.nc-auth-banner {
    width: 40% !important; background: #F9F5F0 !important;
    padding: 40px !important;
    display: flex !important; flex-direction: column; justify-content: center;
    position: relative; flex-shrink: 0;
}
.nc-banner-content h3 {
    color: #D0A75D; font-size: 26px; margin: 0 0 15px 0; font-weight: 700;
}
.nc-banner-content p {
    color: #555; font-size: 15px; line-height: 1.6; margin: 0 0 30px 0;
}
.nc-banner-img {
    width: 80%; max-width: 220px; margin: 0 auto; display: block; height: auto;
}

/* 3. CỘT PHẢI: MAIN FORM (60%) */
.nc-auth-main {
    width: 60% !important; padding: 50px !important;
    display: flex !important; flex-direction: column; justify-content: center;
    position: relative; background: #fff !important; flex-shrink: 0;
}

/* 4. LOGIC ẨN HIỆN VIEW (QUAN TRỌNG) */
.nc-view { display: none !important; }
.nc-view.active { display: block !important; animation: ncFadeUp 0.3s ease; }

.nc-head h2 {
    font-size: 28px; color: #222; margin: 0 0 25px 0; font-weight: 700;
}

/* 5. INPUT FIELDS */
.nc-field-group { margin-bottom: 15px; }
.nc-field-group input {
    width: 100%; height: 52px; padding: 0 15px;
    border: 1px solid #E0E0E0; border-radius: 8px;
    font-size: 16px; color: #333; background: #fff; outline: none;
    box-sizing: border-box; transition: 0.2s;
}
.nc-field-group input:focus {
    border-color: #D0A75D; box-shadow: 0 0 0 3px rgba(208, 167, 93, 0.15);
}
.nc-field-group input::placeholder { color: #999; opacity: 1; }

/* 6. BUTTONS */
.nc-btn-primary {
    width: 100%; height: 52px; border: none; border-radius: 8px;
    background: #D0A75D; color: #fff;
    font-size: 18px; font-weight: 700; cursor: pointer;
    transition: 0.2s; margin-top: 15px;
}
.nc-btn-primary:hover { background: #B88A38; }

.nc-sub-actions { text-align: right; margin-top: 15px; font-size: 14px; }
.nc-sub-actions a { color: #666; text-decoration: none; }
.nc-sub-actions a:hover { color: #D0A75D; }

/* 7. SOCIAL LOGIN & DIVIDER */
.nc-divider { margin: 30px 0; text-align: center; position: relative; }
.nc-divider span {
    background: #fff; padding: 0 15px;
    color: #999; font-size: 14px; position: relative; z-index: 1;
}
.nc-divider::before {
    content: ""; position: absolute; top: 50%; left: 0; width: 100%;
    height: 1px; background: #E0E0E0; z-index: 0;
}
.nc-btn-social {
    width: 100%; height: 52px; border: 1px solid #E0E0E0; border-radius: 8px;
    background: #fff; color: #333; font-weight: 600; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    gap: 12px; cursor: pointer; transition: 0.2s;
}
.nc-btn-social:hover { background: #F9F9F9; border-color: #D0A75D; }

/* 8. FOOTER LINKS */
.nc-foot-link { margin-top: 30px; text-align: center; font-size: 15px; color: #666; }
.nc-foot-link a { color: #D0A75D; font-weight: 700; text-decoration: none; }
.nc-foot-link a:hover { text-decoration: underline; }

/* 9. TẠM ẨN GOOGLE (THEO YÊU CẦU CỦA BẠN) */
.nc-divider, .nc-social-login { display: none !important; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .nc-auth-box { flex-direction: column !important; height: auto !important; }
    .nc-auth-banner { display: none !important; }
    .nc-auth-main { width: 100% !important; padding: 30px 20px !important; }
    #nc-auth-modal .nc-auth-box { max-height: 90vh; overflow-y: auto; }
}

/* ANIMATIONS */
@keyframes ncPopupIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes ncFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }