﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #00D4FF;
    --primary-light: #40E0FF;
    --primary-dark: #0099CC;
    --primary-glow: rgba(0, 212, 255, 0.45);
    --bg-dark: #020d1a;
    --card-bg: rgba(10, 8, 35, 0.82);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(0, 212, 255, 0.2);
    --text-main: #f2f0ff;
    --text-muted: #8888bb;
    --border-glow: rgba(0, 212, 255, 0.65);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background: radial-gradient(ellipse at 25% 55%, #031a2e 0%, #020d1a 45%, #01080f 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -20%; left: -15%;
    width: 70vw; height: 70vw;
    background: radial-gradient(ellipse, rgba(0,168,255,0.28) 0%, rgba(0,212,255,0.12) 50%, transparent 75%);
    border-radius: 50%;
    animation: blob1 9s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    filter: blur(45px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%; right: -15%;
    width: 65vw; height: 65vw;
    background: radial-gradient(ellipse, rgba(60,0,200,0.22) 0%, rgba(0,200,255,0.1) 55%, transparent 75%);
    border-radius: 50%;
    animation: blob2 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    filter: blur(55px);
}

@keyframes blob1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(6%,10%) scale(1.2); } }
@keyframes blob2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-6%,-10%) scale(1.15); } }

/* WRAPPER */
.signup-wrapper {
    width: 100%; max-width: 400px;
    padding: 20px;
    position: relative; z-index: 1;
}

/* CARD */
#signupFormView {
    background: var(--card-bg);
    backdrop-filter: blur(36px); -webkit-backdrop-filter: blur(36px);
    border: 1px solid rgba(0,212,255,0.22);
    border-radius: 28px;
    padding: 38px 30px 34px;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.8),
        0 0 0 1px rgba(0,212,255,0.1),
        0 0 60px rgba(0,168,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.07),
        inset 0 -1px 0 rgba(0,212,255,0.06);
    position: relative; overflow: hidden;
    animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

#signupFormView::before {
    content: '';
    position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.9), transparent);
}

#signupFormView::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top left, rgba(0,168,255,0.1) 0%, transparent 55%);
    pointer-events: none;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* HEADER */
.signup-header { text-align: center; margin-bottom: 30px; }

.signup-header .logo-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, #0066aa 0%, #00a8cc 40%, #00D4FF 100%);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    box-shadow: 0 8px 32px rgba(0,168,204,0.5), 0 0 0 1px rgba(0,212,255,0.3);
    animation: iconPulse 3s ease-in-out infinite;
    position: relative; overflow: hidden;
}

.signup-header .logo-icon::after {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer { 0% { transform: translateX(-100%) translateY(-100%); } 100% { transform: translateX(100%) translateY(100%); } }
@keyframes iconPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(0,168,204,0.5), 0 0 0 1px rgba(0,212,255,0.3); }
    50%       { box-shadow: 0 12px 44px rgba(0,168,204,0.7), 0 0 0 1px rgba(0,212,255,0.5); }
}

.signup-header h1 {
    font-size: 26px; font-weight: 800; letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff 20%, #40E0FF 55%, #00D4FF 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 6px;
}

.signup-header p { color: var(--text-muted); font-size: 13px; }

/* FORM GROUPS */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block; margin-bottom: 8px;
    font-size: 11px; font-weight: 600;
    color: var(--text-muted); letter-spacing: 0.8px; text-transform: uppercase;
}

/* INPUT */
.input-container {
    position: relative; display: flex; align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    transition: all 0.3s ease; overflow: hidden;
}

.input-container::before {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), transparent);
    transition: opacity 0.3s ease; pointer-events: none;
}

.input-container:focus-within {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1), 0 0 20px rgba(0,212,255,0.05);
}

.input-container:focus-within::before { opacity: 1; }

.country-prefix {
    padding: 0 14px;
    border-right: 1px solid rgba(0,212,255,0.15);
    font-weight: 600; color: var(--text-main); font-size: 14px;
}

.input-container input {
    width: 100%; background: transparent; border: none; outline: none;
    padding: 15px 16px; color: var(--text-main); font-size: 14.5px;
}

.input-container input::placeholder { color: #3e4460; font-size: 14px; }

/* EYE ICON */
.eye-icon {
    position: absolute; right: 16px; cursor: pointer;
    color: var(--text-muted); font-size: 15px; transition: color 0.25s; z-index: 2;
}
.eye-icon:hover { color: var(--primary); text-shadow: 0 0 10px rgba(0,212,255,0.5); }

/* FORGOT PASSWORD */
.auth-links a {
    color: var(--primary) !important; text-decoration: none !important;
    font-size: 13px !important; font-weight: 600 !important;
    transition: all 0.2s ease; text-shadow: 0 0 12px rgba(0,212,255,0.2);
}
.auth-links a:hover { text-shadow: 0 0 18px rgba(0,212,255,0.5); }

/* BUTTON */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0066aa 0%, #00a8cc 30%, #00D4FF 70%, #00AADD 100%);
    background-size: 230% auto;
    color: #ffffff; border: none;
    padding: 16px; border-radius: 16px;
    font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    margin-top: 8px; position: relative; overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,168,204,0.45), 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.submit-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transition: left 0.55s ease;
}
.submit-btn:hover::before { left: 100%; }
.submit-btn:hover {
    background-position: right center; transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(0,168,204,0.6), 0 6px 20px rgba(0,212,255,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.submit-btn:active { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,212,255,0.35); }

/* LOGIN LINK */
.login-link { text-align: center; margin-top: 22px; color: var(--text-muted); font-size: 13.5px; }
.login-link a {
    color: var(--primary-light); text-decoration: none; font-weight: 700;
    transition: all 0.25s ease; text-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.login-link a:hover { color: #fff; text-shadow: 0 0 18px rgba(0,212,255,0.5); }

/* DIVIDER */
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #3a3f58; font-size: 12px; }
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
}

/* SUCCESS / MODAL */
.success-view { text-align: center; display: none; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.88); backdrop-filter: blur(10px);
    display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px;
}
.success-modal {
    background: rgba(8,12,28,0.95); width: 100%; max-width: 400px;
    padding: 40px 30px; border-radius: 28px; text-align: center;
    border: 1px solid rgba(0,212,255,0.2);
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active { display: flex; }
.modal-overlay.active .success-modal { transform: scale(1); }

.success-icon {
    width: 70px; height: 70px;
    background: rgba(61,255,160,0.1); color: #3dffa0;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 32px; margin: 0 auto 20px; border: 1px solid rgba(61,255,160,0.2);
}

.download-apk-btn {
    display: inline-block; width: 100%;
    background: linear-gradient(135deg, #005f99 0%, #00D4FF 40%, #40E0FF 60%, #0099CC 100%);
    background-size: 220% auto;
    color: #0a0800; text-decoration: none; padding: 16px; border-radius: 16px;
    font-weight: 800; font-size: 14px; letter-spacing: 1px; margin-top: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 24px rgba(0,212,255,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.download-apk-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,212,255,0.55); }

.optional-badge {
    position: absolute; right: 0; top: 8px; font-size: 11px;
    color: #475569; background: rgba(71,85,105,0.1); padding: 2px 8px; border-radius: 4px;
}
