:root {
    --background: #f4f4f7;
    --foreground: #1a1a1e;
    --primary: #7c3aed;
    --primary-foreground: #ffffff;
    --card: #ffffff;
    --border: #e2e2e8;
    --muted: #f1f1f4;
    --muted-foreground: #64748b;
    --accent: #9333ea;
    --glow-cyan: #06b6d4;
    --glow-magenta: #d946ef;
    --radius: 28px;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.auth-sidebar {
    display: none;
    position: relative;
    width: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05), rgba(217, 70, 239, 0.04));
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    padding: 3rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .auth-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.sidebar-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.orb-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
}

.orb-2 {
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: var(--accent);
}

.sidebar-content {
    position: relative;
    z-index: 10;
    max-width: 420px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.logo-box {
    width: 3rem;
    height: 3rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-dot {
    width: 1rem;
    height: 1rem;
    background: var(--primary);
    border-radius: 50%;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.verify-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-left: 0.5rem;
}

.sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--glow-cyan), var(--primary), var(--glow-magenta), var(--glow-cyan));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 6s ease infinite;
}

.sidebar-desc {
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 226, 232, 0.3);
    border-radius: 1rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.feature-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.sidebar-footer {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Main Area Styling */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.glass-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 226, 232, 0.5);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(to bottom right, rgba(124, 58, 237, 0.3), transparent, rgba(6, 182, 212, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.05));
    border-radius: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.header-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.verify-badge {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.verify-badge svg {
    width: 0.875rem;
    height: 0.875rem;
}

.card-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    max-width: 280px;
    margin: 0 auto;
}

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
    padding-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: rgba(100, 116, 139, 0.35);
    transition: color 0.2s;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.input-wrapper input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 2.75rem;
    background: rgba(241, 241, 244, 0.15);
    border: 1px solid rgba(226, 226, 232, 0.5);
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    background: rgba(241, 241, 244, 0.25);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(100, 116, 139, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.toggle-password:hover {
    color: var(--foreground);
    background: rgba(0, 0, 0, 0.05);
}

.toggle-password svg {
    width: 1.125rem;
    height: 1.125rem;
}

.submit-btn {
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 8px 16px -4px rgba(124, 58, 237, 0.3);
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(124, 58, 237, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.form-footer a {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: var(--foreground);
}

.form-footer a#switch-mode {
    color: var(--primary);
    font-weight: 600;
}

.form-footer a#switch-mode:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 226, 232, 0.2);
}

.lock-icon {
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(16, 185, 129, 0.6);
}

.lock-icon svg {
    width: 0.75rem;
    height: 0.75rem;
}

.security-footer span {
    font-size: 0.625rem;
    color: rgba(100, 116, 139, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.mobile-footer {
    text-align: center;
    font-size: 0.625rem;
    color: rgba(100, 116, 139, 0.3);
    margin-top: 1.5rem;
}

.hidden {
    display: none;
}

@media (min-width: 1024px) {
    .lg-hidden {
        display: none;
    }
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-ping-slow {
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
