/* =====================================================
   ULTRA MODERN LOGIN CSS - MOBILE OPTIMIZED
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: linear-gradient(#7c3aed, #ec4899); border-radius: 10px; }

/* =====================================================
   BODY
   ===================================================== */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15,12,41,0.92) 0%,
        rgba(48,43,99,0.82) 50%,
        rgba(36,36,62,0.92) 100%);
    z-index: 0;
}

/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 10s ease-in-out infinite;
}
.orb-1 { width:500px; height:500px; background:rgba(124,58,237,0.18); top:-150px; right:-150px; }
.orb-2 { width:350px; height:350px; background:rgba(236,72,153,0.14); bottom:-100px; left:-100px; animation-delay:-5s; }
.orb-3 { width:250px; height:250px; background:rgba(99,102,241,0.12); top:50%; left:30%; animation-delay:-2s; }

@keyframes orbFloat {
    0%,100% { transform:translate(0,0) scale(1); }
    33%      { transform:translate(20px,-25px) scale(1.05); }
    66%      { transform:translate(-15px,15px) scale(0.97); }
}

/* =====================================================
   PAGE WRAPPER
   ===================================================== */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

/* =====================================================
   MAIN CARD
   ===================================================== */
.main-card {
    display: flex;
    width: 100%;
    max-width: 1060px;
    min-height: 620px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 50px 100px rgba(0,0,0,0.60),
        0 0 0 1px rgba(255,255,255,0.07),
        inset 0 1px 0 rgba(255,255,255,0.10);
    animation: cardAppear 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes cardAppear {
    from { opacity:0; transform:translateY(40px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

/* =====================================================
   LEFT — FORM PANEL
   ===================================================== */
.form-panel {
    flex: 0 0 460px;
    width: 460px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: thin;
    position: relative;
}

/* Rainbow top bar */
.form-panel::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899, #f59e0b, #10b981);
    background-size: 200% auto;
    animation: rainbowBar 4s linear infinite;
    flex-shrink: 0;
}

@keyframes rainbowBar {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.form-inner {
    padding: 32px 38px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── LOGO ── */
.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    animation: fadeDown 0.6s 0.2s both;
}

.brand-logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(124,58,237,0.25));
    transition: transform 0.3s ease;
}

.brand-logo img:hover { transform: scale(1.04); }

/* ── LOADER ── */
.form-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    gap: 16px;
}

.form-loader img { width: 58px; }

.form-loader p {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ── FORM HEADER ── */
.form-header {
    text-align: center;
    margin-bottom: 26px;
    animation: fadeDown 0.6s 0.3s both;
}

.form-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    color: #7c3aed;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(124,58,237,0.18);
}

.form-tag i { font-size: 9px; }

.form-header h2 {
    font-size: 23px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 13px;
    color: #6b7280;
}

/* ── FIELD GROUP ── */
.field-group {
    margin-bottom: 14px;
    animation: fadeUp 0.5s both;
}

.field-group:nth-child(1) { animation-delay: 0.35s; }
.field-group:nth-child(2) { animation-delay: 0.40s; }
.field-group:nth-child(3) { animation-delay: 0.45s; }

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.field-box {
    position: relative;
}

.field-box .f-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #d1d5db;
    z-index: 2;
    pointer-events: none;
    transition: color 0.25s, transform 0.25s;
}

.field-box:focus-within .f-icon {
    color: #7c3aed;
    transform: translateY(-50%) scale(1.10);
}

.field-box input,
.field-box select {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 2px solid #f3f4f6;
    border-radius: 13px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111827;
    background: #fafafa;
    outline: none;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}

.field-box input:focus,
.field-box select:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.10);
    transform: translateY(-1px);
}

.field-box input::placeholder { color: #d1d5db; font-size: 13px; }

/* Eye Toggle */
.eye-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #9ca3af;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s, transform 0.2s;
    padding: 4px;
}
.eye-btn:hover { color: #7c3aed; transform: translateY(-50%) scale(1.15); }

/* ── FORM META ── */
.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    animation: fadeUp 0.5s 0.5s both;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    user-select: none;
}

.check-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.link-btn {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}
.link-btn:hover { color: #5b21b6; text-decoration: underline; }

/* ── PRIMARY BUTTON ── */
.btn-primary-main {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 13px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s 0.55s both;
}

/* Shimmer sweep */
.btn-primary-main::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-primary-main:hover::after { left: 150%; }

.btn-primary-main:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(124,58,237,0.45);
}
.btn-primary-main:active { transform: translateY(0); box-shadow: none; }

/* ── OR DIVIDER ── */
.or-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    animation: fadeUp 0.5s 0.6s both;
}
.or-line hr { flex:1; border:none; border-top:1.5px solid #f3f4f6; }
.or-line span { font-size:11px; color:#9ca3af; font-weight:700; letter-spacing:1px; }

/* ── BOTTOM ACTION ROW ── */
.bottom-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeUp 0.5s 0.65s both;
}

/* Create Account Row */
.create-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 2px solid #f3f4f6;
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    gap: 12px;
}

.create-row:hover {
    border-color: #e9d5ff;
    background: #fdf4ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.08);
}

.create-row .cr-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cr-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-radius: 11px;
    display: flex; align-items:center; justify-content:center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.create-row:hover .cr-icon { transform: rotate(-8deg) scale(1.08); }
.cr-icon i { font-size: 17px; color: #7c3aed; }

.cr-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1px;
}
.cr-text p {
    font-size: 11.5px;
    color: #6b7280;
}

.cr-arrow {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 9px;
    display: flex; align-items:center; justify-content:center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.create-row:hover .cr-arrow { transform: translateX(3px); }
.cr-arrow i { color: #fff; font-size: 13px; }

/* Download App Button */
.btn-download-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f0c29, #1e1b4b);
    border: 1px solid rgba(99,102,241,0.30);
    border-radius: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.30s ease;
    position: relative;
    overflow: hidden;
}

.btn-download-app::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-download-app:hover::before { left: 150%; }

.btn-download-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15,12,41,0.40);
    border-color: rgba(168,85,247,0.40);
    text-decoration: none !important;
}

.btn-download-app .dl-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 10px;
    display: flex; align-items:center; justify-content:center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.btn-download-app:hover .dl-icon { transform: rotate(-8deg) scale(1.08); }
.btn-download-app .dl-icon i { font-size: 17px; color: #fff; }

.btn-download-app .dl-text {
    flex: 1;
    text-align: left;
}
.btn-download-app .dl-text small {
    display: block;
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1px;
}
.btn-download-app .dl-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.btn-download-app .dl-badge {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── LINK CENTER ── */
.link-center { text-align:center; margin-top:14px; }
.link-center a {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.link-center a:hover { color:#5b21b6; text-decoration:underline; }

/* =====================================================
   RIGHT — PROMO PANEL
   ===================================================== */
.promo-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0f0c29;
}

.promo-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.28;
    transition: transform 8s ease;
}

.main-card:hover .promo-bg { transform: scale(1.04); }

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg,
        rgba(15,12,41,0.94) 0%,
        rgba(79,0,130,0.60) 55%,
        rgba(15,12,41,0.92) 100%);
    z-index: 1;
}

/* Glow blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 1;
    pointer-events: none;
}
.blob-1 { width:380px; height:380px; background:rgba(124,58,237,0.22); top:-120px; right:-100px; animation: blobMove 12s ease-in-out infinite; }
.blob-2 { width:280px; height:280px; background:rgba(236,72,153,0.18); bottom:-80px; left:-80px; animation: blobMove 15s ease-in-out infinite reverse; }
.blob-3 { width:200px; height:200px; background:rgba(99,102,241,0.15); top:50%; right:10%; animation: blobMove 9s ease-in-out infinite 3s; }

@keyframes blobMove {
    0%,100% { transform:translate(0,0) scale(1); }
    50%      { transform:translate(25px,-25px) scale(1.10); }
}

.promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 44px 38px 36px;
    justify-content: space-between;
}

/* Pill */
.promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 26px;
    width: fit-content;
}

.pill-dot {
    width: 8px; height: 8px;
    background: #a855f7;
    border-radius: 50%;
    animation: pillPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(168,85,247,0.6);
}

@keyframes pillPulse {
    0%,100% { opacity:1; transform:scale(1); box-shadow:0 0 8px rgba(168,85,247,0.6); }
    50%      { opacity:0.7; transform:scale(0.8); box-shadow:0 0 4px rgba(168,85,247,0.3); }
}

.promo-pill span { font-size:12px; font-weight:600; color:#e5e7eb; letter-spacing:0.3px; }

/* Headline */
.promo-headline h1 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.promo-headline h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradShift 4s linear infinite;
}

@keyframes gradShift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.promo-headline .sub {
    font-size: 14px;
    color: rgba(255,255,255,0.58);
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 330px;
}

/* Features */
.feature-list { display:flex; flex-direction:column; gap:14px; margin-bottom:30px; }

.feature-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: default;
}

.feature-row:hover {
    background: rgba(124,58,237,0.18);
    border-color: rgba(168,85,247,0.35);
    transform: translateX(4px);
}

.feat-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    display:flex; align-items:center; justify-content:center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.feature-row:hover .feat-icon {
    background: rgba(124,58,237,0.35);
    border-color: rgba(168,85,247,0.50);
    transform: rotate(-8deg);
}

.feat-icon i { font-size: 17px; color: #a855f7; }
.feat-text h4 { font-size:13.5px; font-weight:700; color:#fff; margin-bottom:2px; }
.feat-text p  { font-size:12px; color:rgba(255,255,255,0.48); }

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
}

.stat-box {
    padding: 20px 12px;
    text-align: center;
    background: transparent;
    transition: background 0.3s ease;
    position: relative;
}

.stat-box::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.10);
}
.stat-box:last-child::after { display:none; }

.stat-box:hover { background: rgba(124,58,237,0.18); }

.stat-box .s-icon {
    font-size: 20px;
    color: #a855f7;
    margin-bottom: 6px;
    display: block;
}
.stat-box h3 { font-size:22px; font-weight:800; color:#fff; margin-bottom:3px; }
.stat-box p  { font-size:11px; color:rgba(255,255,255,0.48); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeDown {
    from { opacity:0; transform:translateY(-18px); }
    to   { opacity:1; transform:translateY(0); }
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .form-panel { flex: 0 0 420px; width: 420px; }
    .promo-headline h1 { font-size: 30px; }
    .promo-content { padding: 36px 28px 28px; }
}

/* ── MOBILE — hide right panel completely ── */
@media (max-width: 860px) {

    /* Hide promo right panel on mobile */
    .promo-panel { display: none !important; }

    .main-card {
        max-width: 440px;
        min-height: auto;
        border-radius: 22px;
        box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    }

    .form-panel {
        flex: none;
        width: 100%;
        max-height: none;
    }

    .form-inner { padding: 28px 26px 24px; }

    .brand-logo img { height: 48px; }
    .form-header h2 { font-size: 20px; }
    .form-header p { font-size: 12.5px; }

    .field-box input,
    .field-box select { padding: 13px 14px 13px 42px; font-size: 14px; }

    .btn-primary-main { padding: 14px; font-size: 13.5px; }

    .create-row { padding: 13px 14px; }
    .cr-text h4 { font-size: 12.5px; }
    .cr-text p  { font-size: 11px; }

    .btn-download-app { padding: 13px 16px; }
    .btn-download-app .dl-text strong { font-size: 13.5px; }
}

@media (max-width: 480px) {
    .page-wrapper { padding: 14px 12px; }
    .main-card { border-radius: 18px; }
    .form-inner { padding: 24px 18px 20px; }
    .brand-logo img { height: 44px; }
    .form-header h2 { font-size: 19px; }
    .field-label { font-size: 10.5px; }
}

@media (max-width: 360px) {
    .form-inner { padding: 20px 14px 16px; }
    .form-header h2 { font-size: 17px; }
    .cr-icon { width: 36px; height: 36px; }
}
