/* style.css — Futuristic glassmorphic auth suite with orbital gradients & smooth animations */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 30%, #0b1120, #030617);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* animated particles effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 40%, rgba(56, 189, 248, 0.1) 1.5px, transparent 1px),
        radial-gradient(circle at 75% 85%, rgba(168, 85, 247, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 45% 20%, rgba(236, 72, 153, 0.08) 1px, transparent 1px);
    background-size: 48px 48px, 32px 32px, 64px 64px;
    pointer-events: none;
    z-index: 0;
}

/* floating orbs */
body::after {
    content: "";
    position: fixed;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
input, select{
    outline: none !important;
}
.auth-orbital {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* page switching */
.page {
    display: none;
    animation: fadeScaleUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.page.active {
    display: block;
}

/* glass card */
.glass-card {
    background: rgba(15, 25, 45, 0.65);
    backdrop-filter: blur(16px);
    border-radius: 2.5rem;
    border: 1px solid rgba(72, 187, 255, 0.25);
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
    padding: 2rem 1.8rem 2.4rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(72, 187, 255, 0.5);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.6);
}

/* header styles */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .icon-ring {
    background: linear-gradient(135deg, #2b6eff, #9d4eff);
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 12px 20px -8px rgba(43, 110, 255, 0.4);
    transition: transform 0.2s;
}

.auth-header .icon-ring:hover {
    transform: scale(1.02);
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(120deg, #f0f9ff, #bfdbfe);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.auth-header p {
    color: #9ca9c9;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* input fields */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6d7b9f;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(10, 18, 30, 0.7);
    border: 1px solid rgba(72, 187, 255, 0.3);
    border-radius: 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: #eef4ff;
    font-family: 'Inter', monospace;
    transition: all 0.25s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    background: rgba(15, 25, 45, 0.9);
}

.input-group input::placeholder {
    color: #5a6790;
    font-weight: 400;
}

/* buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(95deg, #2b6eff, #9f4eff);
    border: none;
    padding: 0.9rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 18px -6px #2b6eff70;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px #2b6effaa;
    background: linear-gradient(95deg, #3b7eff, #af5eff);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* footer links */
.auth-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.85rem;
    color: #94a3c7;
}

.auth-footer a {
    color: #6ea8fe;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.25rem;
    border-bottom: 1px dashed #6ea8fe70;
    transition: color 0.2s;
    cursor: pointer;
}

.auth-footer a:hover {
    color: #ffffff;
    border-bottom-color: white;
}

/* OTP specific */
.otp-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 60px;
    height: 70px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    background: rgba(10, 18, 30, 0.8);
    border: 1px solid #3b5f9e;
    border-radius: 1.2rem;
    color: #e2e8ff;
    font-family: 'Inter', monospace;
    transition: all 0.2s;
}

.otp-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
    outline: none;
    transform: scale(1.02);
}

/* messages */
.message-box {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.6rem;
    border-radius: 2rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.message-success {
    color: #4ade80;
}

.message-error {
    color: #f87171;
}

/* animations */
@keyframes fadeScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* responsive */
@media (max-width: 500px) {
    .glass-card {
        padding: 1.5rem;
    }
    .otp-input {
        width: 48px;
        height: 58px;
        font-size: 1.5rem;
    }
    .auth-header h2 {
        font-size: 1.7rem;
    }
    .otp-row {
        gap: 0.5rem;
    }
}