/* ========================================================
   AURA ATELIER - LUXURY CUSTOM GIFT DESIGNING PORTAL
   ======================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================================
   DESIGN SYSTEM & VARIABLES
   ======================================================== */
:root {
    --bg-page: #f6f3ee;
    --bg-card: #ffffff;
    --bg-input: #faf9f6;
    --bg-input-hover: #f5f3ee;

    --gold-100: #faf4e8;
    --gold-200: #f0e2c8;
    --gold-300: #e2c99b;
    --gold-400: #d4b272;
    --gold-500: #c5a059;
    --gold-600: #ab8540;
    --gold-700: #88672e;
    --gold-gradient: linear-gradient(135deg, #e8cf9b 0%, #c5a059 50%, #9c7836 100%);
    --gold-glow: rgba(197, 160, 89, 0.18);

    --text-primary: #181614;
    --text-secondary: #5c564f;
    --text-muted: #8c857b;
    --text-gold: #ab8540;

    --border-light: rgba(226, 218, 206, 0.7);
    --border-focus: #c5a059;
    --border-card: rgba(197, 160, 89, 0.16);

    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --error: #b93838;
    --shadow-subtle: 0 4px 20px rgba(35, 30, 25, 0.04);
    --shadow-card: 0 30px 80px -15px rgba(45, 35, 25, 0.12), 0 10px 30px -5px rgba(45, 35, 25, 0.06);
    --shadow-button: 0 10px 25px -4px rgba(24, 22, 20, 0.25);
    --shadow-gold-button: 0 10px 25px -4px rgba(171, 133, 64, 0.35);
}

/* ========================================================
   GLOBAL PAGE STYLING & AMBIENT GLOWS
   ======================================================== */
html {
    min-height: 100%;
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Ambient dynamic background lighting */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(226, 201, 155, 0.28) 0%, rgba(246, 243, 238, 0) 70%);
}

.glow-2 {
    width: 550px;
    height: 550px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.22) 0%, rgba(246, 243, 238, 0) 70%);
}

.glow-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 45%;
    background: radial-gradient(circle, rgba(240, 226, 200, 0.3) 0%, rgba(246, 243, 238, 0) 70%);
}

/* ========================================================
   MAIN ATELIER PORTAL CONTAINER
   ======================================================== */
.login-page {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    min-height: 740px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 36px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Delicate luxury gold top bar */
.login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.6), transparent);
    z-index: 25;
    pointer-events: none;
}

/* ========================================================
   CHARACTER SECTION & SEAMLESS VIDEO BLENDING
   ======================================================== */
.character-section {
    position: relative;
    min-height: 740px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    padding: 30px;
}

/* Video Container with Pure White Fill */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* Character Video with Seamless Multiply Blend, High-Key Brightness Filter & Feathered Mask */
.character-video {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-height: 720px;
    object-fit: contain;
    display: block;
    background: transparent;
    mix-blend-mode: multiply;
    filter: brightness(1.02) contrast(1.05);
    -webkit-mask-image: none;
    mask-image: none;
}

/* ========================================================
   SEAMLESS WHITE MERGING OVERLAYS (DISABLED TO REMOVE FOG)
   ======================================================== */
.video-blend-right,
.video-blend-bottom,
.video-blend-left,
.video-blend-top,
.video-blend-radial {
    display: none !important;
}

/* ========================================================
   FLOATING UPWARD BALLOONS (On the side of character)
   ======================================================== */
.balloons-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.balloon {
    position: absolute;
    bottom: -140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.88;
    filter: drop-shadow(0 10px 18px rgba(45, 35, 25, 0.12));
    animation: balloonFloatUp linear infinite;
    will-change: transform;
}

.balloon-body {
    width: 44px;
    height: 54px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.16), inset 5px 5px 10px rgba(255, 255, 255, 0.6);
}

/* Glossy highlight on balloon */
.balloon-body::before {
    content: "";
    position: absolute;
    top: 14%;
    left: 20%;
    width: 9px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: rotate(-30deg);
}

.balloon-knot {
    width: 7px;
    height: 5px;
    border-radius: 2px 2px 4px 4px;
    margin-top: -2px;
}

.balloon-string {
    width: 16px;
    height: 55px;
    margin-top: -2px;
}

/* Individual Balloon Colors, Trajectories & Delays */
/* Balloon 1: Royal Magenta-Pink (Left Side) */
.balloon-1 {
    left: 7%;
    animation-duration: 13s;
    animation-delay: 0s;
}
.balloon-1 .balloon-body {
    background: radial-gradient(circle at 35% 30%, #ff5c98 0%, #d81b60 60%, #880e4f 100%);
}
.balloon-1 .balloon-knot {
    background: #880e4f;
}

/* Balloon 2: Champagne Gold (Right Side) */
.balloon-2 {
    right: 10%;
    animation-duration: 15s;
    animation-delay: 3.5s;
    transform: scale(0.92);
}
.balloon-2 .balloon-body {
    background: radial-gradient(circle at 35% 30%, #fef08a 0%, #eab308 55%, #a16207 100%);
}
.balloon-2 .balloon-knot {
    background: #a16207;
}

/* Balloon 3: Sky Cyan (Far Left Side) */
.balloon-3 {
    left: 18%;
    animation-duration: 17s;
    animation-delay: 6.5s;
    transform: scale(0.82);
}
.balloon-3 .balloon-body {
    background: radial-gradient(circle at 35% 30%, #67e8f9 0%, #06b6d4 55%, #0e7490 100%);
}
.balloon-3 .balloon-knot {
    background: #0e7490;
}

/* Balloon 4: Sunset Amber (Far Right Side) */
.balloon-4 {
    right: 22%;
    animation-duration: 14s;
    animation-delay: 9s;
    transform: scale(0.88);
}
.balloon-4 .balloon-body {
    background: radial-gradient(circle at 35% 30%, #fcd34d 0%, #f97316 55%, #c2410c 100%);
}
.balloon-4 .balloon-knot {
    background: #c2410c;
}

/* Balloon 5: Rose Gold (Mid Left Side) */
.balloon-5 {
    left: 26%;
    animation-duration: 16s;
    animation-delay: 11.5s;
    transform: scale(0.78);
}
.balloon-5 .balloon-body {
    background: radial-gradient(circle at 35% 30%, #fbcfe8 0%, #f472b6 55%, #db2777 100%);
}
.balloon-5 .balloon-knot {
    background: #db2777;
}

/* Balloon Float Upwards Keyframe Animation */
@keyframes balloonFloatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 0.92;
    }
    25% {
        transform: translateY(-240px) translateX(12px) rotate(4deg);
    }
    50% {
        transform: translateY(-480px) translateX(-14px) rotate(-4deg);
    }
    75% {
        transform: translateY(-720px) translateX(10px) rotate(3deg);
    }
    92% {
        opacity: 0.92;
    }
    100% {
        transform: translateY(-980px) translateX(-6px) rotate(-2deg);
        opacity: 0;
    }
}

/* Ambient character halo */
.character-section::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, rgba(197, 160, 89, 0.02) 50%, transparent 70%);
    border: 1px dashed rgba(197, 160, 89, 0.15);
    z-index: 1;
    pointer-events: none;
    animation: haloBreathe 8s ease-in-out infinite;
}

/* ========================================================
   ATELIER DECORATIVE BADGES & FLOATING PILLS
   ======================================================== */
.atelier-tag {
    position: absolute;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-700);
    box-shadow: 0 8px 20px rgba(35, 30, 25, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    user-select: none;
}

.atelier-tag.top-tag {
    top: 36px;
    left: 40px;
}

.atelier-tag .sparkle-icon {
    color: var(--gold-500);
    font-size: 12px;
    animation: sparkleSpin 4s linear infinite;
}

/* Floating feature pill */
.atelier-pill {
    position: absolute;
    z-index: 8;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(45, 35, 25, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    user-select: none;
    animation: floatGentle 6s ease-in-out infinite;
}

.rating-pill {
    top: 100px;
    right: 36px;
    animation-delay: -2s;
}

.rating-pill .pill-stars {
    color: #e5a73b;
    font-size: 12px;
    letter-spacing: 1px;
}

.rating-pill .pill-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.rating-pill strong {
    color: var(--text-primary);
    font-weight: 700;
}

.feature-pill {
    bottom: 42px;
    left: 40px;
    animation-delay: -3.5s;
}

.feature-pill .gift-icon {
    font-size: 22px;
    filter: drop-shadow(0 2px 6px rgba(197, 160, 89, 0.3));
}

.feature-pill .pill-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-pill .pill-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.feature-pill .pill-sub {
    font-size: 11px;
    color: var(--gold-700);
    font-weight: 500;
}

/* Floating Sparkle Elements */
.floating-decoration {
    position: absolute;
    z-index: 6;
    color: var(--gold-500);
    pointer-events: none;
    user-select: none;
    animation: floatingDecoration 5s ease-in-out infinite;
    opacity: 0.6;
}

.decoration-one {
    top: 22%;
    left: 12%;
    font-size: 18px;
}

.decoration-two {
    top: 45%;
    right: 14%;
    font-size: 14px;
    animation-delay: 1.5s;
}

.decoration-three {
    bottom: 24%;
    right: 16%;
    font-size: 20px;
    animation-delay: 2.8s;
}

.decoration-four {
    bottom: 12%;
    right: 28%;
    font-size: 16px;
    color: var(--gold-400);
    animation-delay: 4.2s;
}

/* ================================================
   LOGIN SECTION & LUXURY ATELIER FORM
   ================================================= */
.login-section {
    position: relative;
    min-height: 740px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 65px;
    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

/* Brand Header */
.brand-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-logo-img {
    height: 86px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(45, 35, 25, 0.06));
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.brand-container:hover .brand-logo-img {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 6px 16px rgba(224, 36, 106, 0.22));
}

.registered-mark {
    font-size: 11px;
    font-weight: 700;
    vertical-align: super;
    color: var(--gold-600);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.brand-tagline {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--gold-600);
}

/* Eyebrow Label */
.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.8px;
    color: var(--gold-600);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Heading */
.main-title {
    font-size: clamp(36px, 3.8vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.serif-accent {
    font-family: var(--font-serif);
    font-weight: 600;
    font-style: italic;
    color: var(--gold-700);
    letter-spacing: -0.5px;
}

/* Subtitle */
.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Gold Divider */
.gold-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.35), transparent);
}

.divider-gem {
    color: var(--gold-500);
    font-size: 11px;
}

/* ========================================================
   INPUT GROUPS & LUXURY CONTROLS
   ======================================================== */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--text-primary);
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.password-label-row label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--gold-600);
    text-decoration: underline;
}

/* Input Wrapper with SVG Icon */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.25s ease;
}

input {
    width: 100%;
    height: 52px;
    padding: 0 45px 0 46px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

input::placeholder {
    color: #b5ada3;
    font-weight: 400;
}

input:hover {
    background: var(--bg-input-hover);
    border-color: #d8cebf;
}

input:focus {
    background: #ffffff;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.input-wrapper:focus-within .input-icon {
    color: var(--gold-600);
}

/* Password Toggle Eye Button (Individual Icon State) */
.password-toggle {
    position: absolute;
    right: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 0;
}

.password-toggle:hover {
    color: var(--gold-700);
    background: rgba(197, 160, 89, 0.12);
}

.eye-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
}

/* ========================================================
   ERROR MESSAGE
   ======================================================== */
.error-message {
    min-height: 20px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.error-message:not(:empty)::before {
    content: "⚠️";
    font-size: 12px;
}

/* ========================================================
   PRIMARY SUBMIT BUTTON
   ======================================================== */
.login-button {
    position: relative;
    width: 100%;
    height: 54px;
    background: var(--text-primary);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.login-button:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.login-button:hover .btn-shine {
    left: 140%;
}

.login-button:hover {
    background: #25221e;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(24, 22, 20, 0.28);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Loader Animation */
.loader {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: relative;
    z-index: 2;
}

/* ========================================================
   SOCIAL SIGN-IN SECTION
   ======================================================== */
.social-auth-section {
    margin-top: 24px;
}

.social-divider {
    position: relative;
    text-align: center;
    margin-bottom: 16px;
}

.social-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}

.social-divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--bg-input);
    border-color: #cfc6b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 30, 25, 0.05);
}

/* ========================================================
   SIGNUP & FOOTER ATELIER GUARANTEES
   ======================================================== */
.signup {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.signup a {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--gold-400);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.signup a:hover {
    color: var(--gold-700);
    border-color: var(--gold-700);
}

/* Bottom Atelier Trust Badges */
.atelier-features-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 218, 206, 0.5);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.feature-bullet {
    color: var(--gold-500);
    font-size: 8px;
}

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sparkleSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.15);
    }
}

@keyframes haloBreathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatingDecoration {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-14px) rotate(10deg);
    }
}

/* ========================================================
   RESPONSIVE DESIGN / TABLET & MOBILE
   ======================================================== */
@media (max-width: 1080px) {
    .login-page {
        grid-template-columns: 1fr;
        max-width: 620px;
        min-height: auto;
        border-radius: 28px;
    }

    .character-section {
        min-height: 420px;
        height: 420px;
        padding: 20px;
    }

    .video-container {
        min-height: 380px;
    }

    .character-video {
        max-height: 380px;
    }

    .login-section {
        min-height: auto;
        padding: 45px 40px 50px;
    }

    .rating-pill {
        top: 20px;
        right: 20px;
    }

    .feature-pill {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 16px 12px;
    }

    .login-page {
        border-radius: 24px;
    }

    .character-section {
        height: 320px;
        min-height: 320px;
        padding: 10px;
    }

    .video-container {
        min-height: 300px;
    }

    .character-video {
        max-height: 300px;
    }

    .atelier-pill {
        padding: 8px 12px;
        border-radius: 12px;
    }

    .rating-pill {
        display: none;
    }

    .feature-pill {
        bottom: 12px;
        left: 12px;
        padding: 8px 12px;
    }

    .feature-pill .gift-icon {
        font-size: 18px;
    }

    .atelier-tag.top-tag {
        top: 16px;
        left: 16px;
        font-size: 10px;
        padding: 6px 12px;
    }

    .login-section {
        padding: 35px 22px 40px;
    }

    .main-title {
        font-size: 32px;
    }

    .social-buttons-grid {
        grid-template-columns: 1fr;
    }

    .atelier-features-footer {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========================================================
   PHONE & OTP MULTI-STEP FLOW STYLES
   ======================================================== */
.auth-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-step.active-step {
    display: block !important;
    animation: fadeInStep 0.35s ease forwards;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone Number Input Wrapper with Country Select */
.phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-prefix {
    position: absolute;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.flag-icon {
    font-size: 15px;
    line-height: 1;
}

.country-select {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
}

.prefix-arrow {
    font-size: 9px;
    color: var(--gold-600);
}

.phone-wrapper input {
    padding-left: 105px;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Step 2: OTP Header & Sent Phone Display */
.otp-header {
    margin-bottom: 16px;
    background: var(--gold-100);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 10px 14px;
}

.sent-to-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

.sent-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.target-phone-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.edit-phone-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold-700);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.edit-phone-btn:hover {
    background: rgba(197, 160, 89, 0.15);
    text-decoration: underline;
}

/* OTP Label Row & Demo Badge */
.otp-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.demo-otp-badge {
    font-size: 10.5px;
    color: var(--gold-700);
    background: rgba(197, 160, 89, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.demo-otp-badge strong {
    font-weight: 800;
    letter-spacing: 1px;
}

/* 6-Digit OTP Container */
.otp-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.otp-box {
    width: 100%;
    height: 52px;
    padding: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    caret-color: var(--gold-600);
}

.otp-box:hover {
    border-color: var(--gold-300);
    background: var(--bg-input-hover);
}

.otp-box:focus {
    border-color: var(--border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--gold-glow);
    transform: translateY(-1px);
}

.otp-box.error {
    border-color: var(--error) !important;
    background: #fff5f5 !important;
    animation: shakeBox 0.4s ease;
}

@keyframes shakeBox {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Resend OTP Row */
.resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.resend-text {
    color: var(--text-muted);
}

.resend-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-700);
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    font-weight: 500;
}

.resend-btn:not(:disabled):hover {
    color: var(--gold-600);
    text-decoration: underline;
}

/* Step 3: Access Granted Screen */
.access-granted-card {
    text-align: center;
    padding: 6px 0 0;
    animation: fadeInStep 0.4s ease forwards;
}

.success-icon-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 25px -4px rgba(46, 125, 50, 0.35);
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-badge svg {
    width: 30px;
    height: 30px;
}

@keyframes badgePop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.success-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.success-details {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.detail-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2e7d32;
}

.pill-dot {
    width: 7px;
    height: 7px;
    background: #2e7d32;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.6);
}

.detail-phone {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.gold-button {
    background: var(--gold-gradient) !important;
    box-shadow: var(--shadow-gold-button) !important;
}

.gold-button:hover {
    background: linear-gradient(135deg, #d4b272 0%, #ab8540 50%, #88672e 100%) !important;
    transform: translateY(-2px);
}

.btn-gem {
    font-size: 12px;
    color: #ffffff;
}

.sign-out-link {
    display: block;
    margin: 14px auto 0;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.sign-out-link:hover {
    color: var(--error);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .otp-container {
        gap: 5px;
    }
    
    .otp-box {
        height: 48px;
        font-size: 18px;
    }
    
    .phone-wrapper input {
        padding-left: 98px;
    }
}

