/* ==========================================================================
   BSN SHOP - AUDIOPLUS (#31231) FRIENDLY LIGHT BLUE & CORAL AUTH DESIGN SYSTEM
   Bản quyền thiết kế chuyên biệt cho Game Giá Rẻ BSN (gamegiarebsn.com)
   Màu chủ đạo: Background (#F9FBFC), Card (#FFFFFF), Blue (#0581F1 -> #66B4F7), Coral (#FE8A68 -> #EF5F43)
   Font: Be Vietnam Pro & Lucide Icons
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Caveat:wght@700&display=swap');

:root {
    --bsn-bg: #F9FBFC;
    --bsn-card-bg: #FFFFFF;
    --bsn-box-bg: #F0F7FF;
    --bsn-blue-primary: #0581F1;
    --bsn-blue-light: #66B4F7;
    --bsn-blue-indigo: #5876DE;
    --bsn-coral-start: #FE8A68;
    --bsn-coral-end: #EF5F43;
    --bsn-heading: #292929;
    --bsn-text: #555555;
    --bsn-text-muted: #7A869A;
    --bsn-border: #CCD3DD;
    --bsn-border-blue: rgba(5, 129, 241, 0.28);
    --bsn-border-hover: #0581F1;
    --bsn-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bsn-auth-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

@keyframes bsn-auth-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Wrapper toàn trang cho My Account Login */
.bsn-gaming-auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 24px auto 48px auto;
    padding: 24px 16px;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bsn-text);
    animation: bsn-auth-fade-up 0.5s ease-out both;
}

/* Ambient glow nền (Sáng dịu Xanh Dương & Cam Coral) */
.bsn-gaming-glow-ambient {
    position: absolute;
    top: 5%;
    left: 42%;
    width: 620px;
    height: 460px;
    background: radial-gradient(circle, rgba(5, 129, 241, 0.10) 0%, rgba(254, 138, 104, 0.08) 45%, rgba(249, 251, 252, 0) 72%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* Bố cục 2 Cột Desktop */
.bsn-gaming-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    width: 100%;
}

.bsn-col-form {
    flex: 0 0 460px;
    max-width: 480px;
    width: 100%;
}

.bsn-col-showcase {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 20px;
}

/* --------------------------------------------------------------------------
   CỘT TRÁI: FORM ĐĂNG NHẬP (THẺ CARD SÁNG CHUẨN AUDIOPLUS #31231)
   -------------------------------------------------------------------------- */
.bsn-auth-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--bsn-border);
    border-radius: 20px;
    padding: 40px 34px 32px 34px;
    box-shadow: 0px 0px 60px 0px rgba(0, 0, 0, 0.08), 0px 12px 32px rgba(5, 129, 241, 0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.32s var(--bsn-ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.bsn-auth-card:hover {
    border-color: var(--bsn-blue-light);
    transform: translateY(-4px);
    box-shadow: 0px 20px 55px rgba(5, 129, 241, 0.14), 0px 6px 18px rgba(239, 95, 67, 0.08);
}

/* Vạch sáng Blue -> Coral phía trên Card */
.bsn-auth-glow-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0581F1 0%, #66B4F7 50%, #FE8A68 80%, #EF5F43 100%);
}

/* Badge Cổng đăng nhập chính thức (AudioPlus Coral Pill) */
.bsn-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #FE8A68 0%, #EF5F43 100%);
    border: none;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(239, 95, 67, 0.3);
    transition: transform 0.25s var(--bsn-ease-spring);
}

.bsn-auth-badge:hover {
    animation: bsn-auth-pop 0.32s linear 1;
}

.bsn-badge-sparkle {
    font-size: 12px;
    color: #FFFFFF;
    animation: bsn-pulse-glow 2s infinite ease-in-out;
}

@keyframes bsn-pulse-glow {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Tiêu đề & Tagline */
.bsn-auth-title {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--bsn-heading);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.bsn-neon-blue {
    color: var(--bsn-blue-primary);
}

.bsn-auth-tagline {
    color: var(--bsn-text);
    font-size: 13.5px;
    font-weight: 500;
    margin: 0 0 24px 0;
    line-height: 1.45;
}

/* Khối nút đăng nhập Google */
.bsn-google-section {
    margin: 0 0 22px 0;
    display: flex;
    justify-content: center;
}

.bsn-btn-wrapper {
    position: relative;
    display: inline-block;
    padding: 4px;
    background: linear-gradient(135deg, rgba(5, 129, 241, 0.14), rgba(254, 138, 104, 0.18));
    border: 1.5px solid rgba(5, 129, 241, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(5, 129, 241, 0.16);
    transition: transform 0.28s var(--bsn-ease-spring), box-shadow 0.28s ease, border-color 0.28s ease;
}

.bsn-btn-wrapper:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--bsn-blue-primary);
    box-shadow: 0 12px 30px rgba(5, 129, 241, 0.28);
}

.bsn-btn-wrapper .g_id_signin {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

/* Divider "Hoặc" */
.bsn-auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 20px 0;
}

.bsn-divider-line {
    flex: 1;
    height: 1px;
    background: var(--bsn-border);
}

.bsn-divider-text {
    color: var(--bsn-text-muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Box Lợi ích người dùng (AudioPlus Soft Blue Surface) */
.bsn-auth-features-box {
    background: #F9FBFC;
    border: 1px solid var(--bsn-border);
    border-radius: 15px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bsn-feature-row {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s var(--bsn-ease-spring);
}

.bsn-feature-row:hover {
    transform: translateX(4px);
}

.bsn-feat-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsn-icon-cyan {
    background: rgba(5, 129, 241, 0.12);
    color: var(--bsn-blue-primary);
    border: 1px solid rgba(5, 129, 241, 0.25);
}

.bsn-icon-emerald {
    background: rgba(239, 95, 67, 0.12);
    color: var(--bsn-coral-end);
    border: 1px solid rgba(239, 95, 67, 0.25);
}

.bsn-feat-content strong {
    display: block;
    color: var(--bsn-heading);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.bsn-feat-content span {
    display: block;
    color: var(--bsn-text);
    font-size: 12px;
    line-height: 1.4;
}

/* Footer Card Điều khoản */
.bsn-auth-card-footer {
    border-top: 1px solid var(--bsn-border);
    padding-top: 16px;
}

.bsn-policy-text {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--bsn-text-muted);
    margin: 0;
}

.bsn-policy-text a {
    color: var(--bsn-blue-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.bsn-policy-text a:hover {
    color: var(--bsn-coral-end);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   CỘT PHẢI: KHU VỰC GIỚI THIỆU BSN SHOP (AUDIOPLUS SHOWCASE HERO)
   -------------------------------------------------------------------------- */
.bsn-showcase-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Tagline Uy tín */
.bsn-showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0F7FF;
    border: 1px solid rgba(5, 129, 241, 0.25);
    color: var(--bsn-blue-primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.bsn-tag-svg {
    color: var(--bsn-blue-primary);
}

.bsn-tag-leaf {
    font-size: 14px;
}

/* Tiêu đề lớn & Script Badge */
.bsn-showcase-heading-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}

.bsn-showcase-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--bsn-heading);
    margin: 0;
    letter-spacing: -0.02em;
}

.bsn-neon-gradient {
    background: linear-gradient(90deg, #0581F1 0%, #EF5F43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--bsn-blue-primary);
}

/* Badge Script "Play More Games" */
.bsn-play-more-badge {
    position: relative;
    font-family: 'Caveat', cursive;
    color: var(--bsn-coral-end);
    font-size: 32px;
    line-height: 0.95;
    transform: rotate(-10deg);
    user-select: none;
    margin-right: 20px;
}

.bsn-swoosh-svg {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 25px;
}

.bsn-swoosh-svg path {
    stroke: var(--bsn-coral-end) !important;
}

/* Mô tả ngắn */
.bsn-showcase-desc {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--bsn-text);
    max-width: 580px;
    margin: 0 0 26px 0;
}

/* 4 Biểu tượng lợi ích (Highlights - AudioPlus White Pills with Pop Hover) */
.bsn-highlights-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
    width: 100%;
}

.bsn-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid var(--bsn-border);
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(7, 45, 126, 0.05);
    transition: all 0.28s var(--bsn-ease-spring);
}

.bsn-highlight-pill:hover {
    background: #FFFFFF;
    border-color: var(--bsn-blue-primary);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 28px rgba(5, 129, 241, 0.16);
}

.bsn-hl-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FE8A68 0%, #EF5F43 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(239, 95, 67, 0.3);
}

.bsn-hl-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--bsn-heading);
}

/* --------------------------------------------------------------------------
   NHỮNG THẺ GAME XẾP CHỒNG 3D TẠO CHIỀU SÂU (STACKED 3D GAME CARDS)
   -------------------------------------------------------------------------- */
.bsn-cards-3d-scene {
    position: relative;
    width: 100%;
    padding: 20px 0 10px 0;
    perspective: 1200px;
}

.bsn-cards-deck {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    position: relative;
    transform-style: preserve-3d;
    padding-bottom: 10px;
}

.bsn-game-card {
    position: relative;
    width: 145px;
    height: 215px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: #FFFFFF;
    box-shadow: 0 16px 36px rgba(7, 45, 126, 0.18);
    transition: transform 0.42s var(--bsn-ease-spring), box-shadow 0.42s ease, border-color 0.35s ease;
    transform-origin: center bottom;
    flex-shrink: 0;
}

.bsn-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #F0F7FF;
    position: relative;
}

.bsn-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Card 1: Elden Ring */
.bsn-card-1 {
    transform: perspective(1000px) rotateY(18deg) rotateZ(-3deg) scale(0.92);
    z-index: 2;
    margin-right: -24px;
    border: 2px solid #FFFFFF;
}

/* Card 2: Steam Hero Card (AudioPlus Vibrant Blue Gradient) */
.bsn-card-steam {
    width: 160px;
    height: 235px;
    transform: perspective(1000px) translateZ(40px) scale(1.05);
    z-index: 5;
    margin-right: -20px;
    border: 3px solid #FFFFFF;
    box-shadow: 0 20px 44px rgba(5, 129, 241, 0.35);
}

.bsn-card-steam .bsn-card-inner {
    background: linear-gradient(180deg, #0581F1 0%, #5876DE 60%, #66B4F7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.bsn-steam-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #FFFFFF;
}

.bsn-steam-svg {
    color: #FFFFFF;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.bsn-steam-wordmark {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #FFFFFF;
}

.bsn-steam-wordmark sup {
    font-size: 9px;
    margin-left: 2px;
}

/* Card 3: Grand Theft Auto V */
.bsn-card-3 {
    transform: perspective(1000px) rotateY(-10deg) rotateZ(2deg) scale(0.97);
    z-index: 3;
    margin-right: -24px;
    border: 2px solid #FFFFFF;
}

/* Card 4: Hogwarts Legacy */
.bsn-card-4 {
    transform: perspective(1000px) rotateY(-20deg) rotateZ(4deg) scale(0.90);
    z-index: 2;
    border: 2px solid #FFFFFF;
}

/* Hover Effect trên các Game Cards: Nhấc bổng, phóng to & viền phát sáng */
.bsn-game-card:hover {
    transform: translateY(-16px) scale(1.09) rotateY(0deg) rotateZ(0deg) !important;
    z-index: 10 !important;
    box-shadow: 0 24px 48px rgba(5, 129, 241, 0.32), 0 8px 20px rgba(239, 95, 67, 0.22) !important;
    border-color: var(--bsn-coral-start) !important;
}

.bsn-game-card:hover .bsn-card-poster {
    transform: scale(1.06);
}

/* Ambient Glow phản chiếu sàn dưới các thẻ game */
.bsn-deck-ground-glow {
    position: absolute;
    bottom: -15px;
    left: 40px;
    width: 80%;
    height: 45px;
    background: radial-gradient(ellipse at 50% 50%, rgba(5, 129, 241, 0.22) 0%, rgba(249, 251, 252, 0) 75%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   THÔNG BÁO LỖI & THÔNG TIN (NOTICES)
   -------------------------------------------------------------------------- */
.bsn-login-notice {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.bsn-notice-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.bsn-notice-warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #D97706;
}

.bsn-notice-info {
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    color: #0581F1;
}

/* --------------------------------------------------------------------------
   MY ACCOUNT TRẠNG THÁI LIÊN KẾT (DASHBOARD)
   -------------------------------------------------------------------------- */
.bsn-account-linked-card {
    background: #FFFFFF;
    border: 1px solid var(--bsn-border);
    border-radius: 15px;
    padding: 22px 26px;
    margin: 24px 0;
    color: var(--bsn-text);
    box-shadow: 0 8px 28px rgba(7, 45, 126, 0.06);
}

.bsn-linked-title {
    margin: 0 0 14px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--bsn-heading);
}

.bsn-linked-status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

.bsn-status-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.bsn-status-unlinked {
    background: #F0F7FF;
    border: 1px solid rgba(5, 129, 241, 0.28);
    color: var(--bsn-blue-primary);
}

.bsn-status-icon {
    font-size: 20px;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .bsn-showcase-title {
        font-size: 36px;
    }
    .bsn-play-more-badge {
        font-size: 26px;
    }
    .bsn-game-card {
        width: 125px;
        height: 185px;
    }
    .bsn-card-steam {
        width: 140px;
        height: 205px;
    }
}

@media (max-width: 960px) {
    .bsn-gaming-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .bsn-col-form {
        max-width: 480px;
        width: 100%;
    }

    .bsn-col-showcase {
        padding-left: 0;
        width: 100%;
        max-width: 600px;
        text-align: center;
        align-items: center;
    }

    .bsn-showcase-content {
        align-items: center;
        text-align: center;
    }

    .bsn-showcase-heading-wrap {
        justify-content: center;
        gap: 20px;
    }

    .bsn-highlights-grid {
        justify-content: center;
    }

    .bsn-cards-deck {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .bsn-auth-card {
        padding: 30px 20px 24px 20px;
        border-radius: 16px;
    }

    .bsn-auth-title {
        font-size: 21px;
    }

    .bsn-showcase-title {
        font-size: 30px;
    }

    .bsn-play-more-badge {
        display: none;
    }

    .bsn-cards-3d-scene {
        display: none;
    }
}
