/* ═══════════════════════════════════════════════════════════════════════════
   VISORA STUDIO – Auth Forms (SaaS Premium Light Mode)
   ═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --vs-bg: #ffffff;
    --vs-accent: #6366f1;
    --vs-accent-glow: rgba(99, 102, 241, 0.15);
    --vs-text: #0f172a;
    --vs-text-muted: #64748b;
    --vs-border: #e2e8f0;
    --vs-font: 'Inter', system-ui, -apple-system, sans-serif;
    --vs-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--vs-font);
    color: var(--vs-text);
    background-color: var(--vs-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Dynamic Background: Animated Mesh Gradient --- */
.vs-auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #fdfdff;
    overflow: hidden;
}

.vs-auth-bg__blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blobFloat 25s infinite alternate ease-in-out;
}

.vs-auth-bg__blob--1 {
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.vs-auth-bg__blob--2 {
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: -15%;
    right: -5%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.vs-auth-bg__blob--3 {
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: 40%;
    left: 45%;
    width: 40vw;
    height: 40vw;
    animation-duration: 40s;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(10%, 15%) scale(1.1) rotate(45deg); }
    66% { transform: translate(-5%, 20%) scale(0.9) rotate(-30deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* --- Auth Layout --- */
.vs-auth {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    animation: authEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vs-auth__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.vs-auth__logo img {
    height: 40px;
    margin-bottom: 12px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}

/* --- Auth Card --- */
.vs-auth__card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 56px;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.05),
        0 40px 80px -20px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.8s var(--vs-ease), box-shadow 0.8s var(--vs-ease);
}

.vs-auth__card:hover {
    box-shadow: 
        0 4px 30px -1px rgba(0, 0, 0, 0.06),
        0 50px 100px -25px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.vs-auth__title {
    font-size: 36px;
    font-weight: 950;
    color: var(--vs-text);
    letter-spacing: -0.05em;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vs-auth__sub {
    font-size: 16px;
    color: var(--vs-text-muted);
    margin-bottom: 48px;
    text-align: center;
    line-height: 1.6;
    font-weight: 600;
    opacity: 0.8;
}

/* --- Form Elements --- */
.vs-auth__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vs-auth__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vs-auth__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--vs-text);
    margin-left: 4px;
}

.vs-auth__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--vs-font);
    background: #ffffff;
    border: 1px solid var(--vs-border);
    border-radius: 12px;
    color: var(--vs-text);
    transition: all 0.2s var(--vs-ease);
    outline: none;
}

.vs-auth__input:focus {
    border-color: var(--vs-accent);
    box-shadow: 0 0 0 4px var(--vs-accent-glow);
}

.vs-auth__input::placeholder {
    color: #cbd5e1;
}

/* --- Submit Button --- */
.vs-auth__submit {
    margin-top: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: var(--vs-text);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s var(--vs-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vs-auth__submit:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.vs-auth__submit:active {
    transform: translateY(0);
}

.vs-auth__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Status Messages --- */
.vs-auth__message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    display: none;
    border: 1px solid transparent;
}

.vs-auth__message--error {
    display: block;
    background: #fef2f2;
    border-color: #fee2e2;
    color: #dc2626;
}

.vs-auth__message--success {
    display: block;
    background: #f0fdf4;
    border-color: #dcfce7;
    color: #16a34a;
}

/* --- Footer & Back --- */
.vs-auth__footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--vs-text-muted);
}

.vs-auth__footer a {
    color: var(--vs-accent);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.vs-auth__footer a:hover {
    text-decoration: underline;
}

.vs-auth__back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vs-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.vs-auth__back:hover {
    color: var(--vs-text);
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    .vs-auth, .wave {
        animation: none;
    }
}