:root {
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #06B6D4;
    --secondary-glow: rgba(6, 182, 212, 0.4);
    --bg-dark: #030712;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #F9FAFB;
    --text-dim: #9CA3AF;
    --success: #10B981;
    --danger: #EF4444;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 15%, var(--primary-glow) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, var(--secondary-glow) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 0%, var(--bg-dark) 100%);
}

.bg-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/baseFilter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Main Card */
.landing-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: 
        0 20px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    margin: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landing-card:hover {
    transform: translateY(-4px);
}

/* Decorative Top Border */
.landing-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    z-index: 1;
}

/* Logo & Header */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.2;
    filter: blur(8px);
}

.title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(to bottom right, #FFFFFF 30%, rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-dim);
    font-size: 16px;
    margin-top: 10px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 320px;
}

/* Auth Section */
.auth-section {
    margin-top: 32px;
}

.email-input-wrapper {
    position: relative;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

.email-input-wrapper:focus-within {
    transform: scale(1.01);
}

.email-input-wrapper svg,
.input-icon svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.2s;
    z-index: 1;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.styled-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 16px 14px 48px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.2s;
}

.styled-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.styled-input:focus + svg {
    color: var(--primary) !important;
}

.btn-primary {
    width: 100%;
    background: white;
    color: #000;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-primary:hover {
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.divider span {
    padding: 0 16px;
}

/* Google Button */
.google-btn-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

/* Footer Links */
.footer-links {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.link:hover {
    color: var(--primary-light);
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.2s;
}

.link:hover::after {
    width: 100%;
}

/* Status Message */
.status-msg {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    border-radius: 8px;
}

.status-msg.error {
    color: var(--danger);
}

.status-msg.success {
    color: var(--success);
}

/* Success View */
#success-view {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 640px) {
    .landing-card {
        padding: 32px 24px;
        margin: 16px;
        border-radius: 24px;
    }

    .title {
        font-size: 28px;
    }

    .logo-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.logo-icon {
    animation: float 4s ease-in-out infinite;
}

/* Auth View Sections & Transitions */
.auth-flow-section {
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphic Alerts */
.status-msg {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    border-radius: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: none;
}

.status-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.status-msg.success {
    display: block;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #86efac;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.password-strength-bar {
    height: 4px;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.password-strength-text {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    text-align: right;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

