@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

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

body {
    background: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Unified Layout */
.main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

.hero-section {
    flex: 1;
    min-width: 300px;
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.auth-wrapper {
    flex: 1;
    min-width: 350px;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

h1.gradient-text {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: #94a3b8;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Slider Toggle */
.slider-container {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.slider-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s;
}
.slider-btn.active {
    color: #fff;
}
.slider-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-right .slider-bg {
    transform: translateX(100%);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

button.primary-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
}

.hidden {
    display: none !important;
}

.forgot-link {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #60a5fa;
    cursor: pointer;
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* Recovery Box */
.recovery-box { background: rgba(0, 0, 0, 0.4); border: 1px dashed #8b5cf6; border-radius: 12px; padding: 20px; margin: 20px 0; }
.phrase-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 15px; }
.word { background: rgba(255, 255, 255, 0.1); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; color: #a78bfa; }
.copy-btn { background: rgba(255, 255, 255, 0.1); padding: 10px; width: auto; border:none; color:white; border-radius:8px; cursor:pointer; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.2); }

.network-dropdown {
    background: rgba(0, 0, 0, 0.4);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}
.network-dropdown option {
    background: #1e293b;
    color: #f8fafc;
}

/* --- PREMIUM UI UPGRADES --- */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-green 2s infinite;
}

.hover-glow {
    transition: all 0.3s ease;
}
.hover-glow:hover {
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.3), 0 8px 10px -6px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.5);
}

.copyable {
    cursor: pointer;
    transition: color 0.2s;
}
.copyable:hover {
    color: #fff !important;
}

/* --- MODAL UI --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1; pointer-events: all;
}
.modal-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    width: 90%; max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
.modal-close {
    float: right;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
}
.modal-close:hover { color: #f8fafc; }
.qr-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px 0;
}
