:root {
    --white: #fafafa;
    --coral: #f97316;
    --rose: #f43f5e;
    --deep-purple: #1e1b4b;
    --peach: #fff7ed;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Panel - Scenic Background */
.left-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(to top, var(--deep-purple) 0%, var(--rose) 40%, var(--coral) 100%);
    overflow: hidden;
    animation: bloom-in 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes bloom-in {
    0% { filter: brightness(0) blur(20px); opacity: 0; }
    100% { filter: brightness(1) blur(0px); opacity: 1; }
}

/* Sunrays & Lens Flare */
.sunrays {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 2%, transparent 2%, transparent 10%);
    animation: ray-shift 30s linear infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}
@keyframes ray-shift {
    100% { transform: rotate(15deg) scale(1.2); }
}

.lens-flare {
    position: absolute;
    top: 20%; left: 30%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(249,115,22,0.4) 30%, transparent 70%);
    filter: blur(20px);
    border-radius: 50%;
    animation: pulse-flare 4s infinite alternate ease-in-out;
}
@keyframes pulse-flare {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

/* Scenic Content */
.scenic-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.motivational-quote {
    color: white;
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    animation: fade-in-quote 1.5s 1s forwards ease-out;
}
@keyframes fade-in-quote {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fitness-widget {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 16px 24px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: white;
    width: fit-content;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fade-in-quote 1.5s 1.2s forwards ease-out;
}
.fitness-widget svg { width: 32px; height: 32px; }
.widget-data { display: flex; flex-direction: column; }
.widget-value { font-weight: 700; font-size: 20px; font-family: var(--font-heading); }
.widget-label { font-size: 12px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

/* Runner Scene */
.runner-scene {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    z-index: 5;
}
.grass-layer {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 30%;
    background: linear-gradient(to top, var(--deep-purple), transparent);
    animation: sway 6s infinite alternate ease-in-out;
}
@keyframes sway {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.runner-container {
    position: absolute;
    bottom: 10%; right: 20%;
    width: 200px; height: 200px;
}
.runner-svg {
    width: 100%; height: 100%;
}
.running-body { animation: bounce 0.6s infinite alternate cubic-bezier(0.4, 0, 0.6, 1); transform-origin: center bottom; }
.arm-f { animation: swing-arm-f 1.2s infinite ease-in-out; transform-origin: 50px 30px; }
.arm-b { animation: swing-arm-b 1.2s infinite ease-in-out; transform-origin: 50px 30px; }
.leg-f { animation: swing-leg-f 1.2s infinite ease-in-out; transform-origin: 50px 60px; }
.leg-b { animation: swing-leg-b 1.2s infinite ease-in-out; transform-origin: 50px 60px; }

@keyframes bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } }
@keyframes swing-arm-f { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(-30deg); } }
@keyframes swing-arm-b { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(30deg); } }
@keyframes swing-leg-f { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(30deg); } }
@keyframes swing-leg-b { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(-40deg); } }

/* Right Panel */
.right-panel {
    flex: 1;
    max-width: 600px;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: -20px 0 50px rgba(0,0,0,0.05);
    z-index: 20;
    transform: translateX(100%);
    animation: slide-in-panel 1s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slide-in-panel {
    100% { transform: translateX(0); }
}

.panel-content {
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
}

/* Weather Widget */
.weather-widget {
    display: inline-block;
    padding: 6px 12px;
    background: var(--peach);
    color: var(--coral);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Branding */
.branding { text-align: center; margin-bottom: 40px; }

.brand-top {
    display: flex;
    justify-content: center;
    margin-bottom: -10px;
}
.mini-runner { width: 32px; height: 32px; animation: dash 2s infinite linear; }
@keyframes dash { 0% { transform: translateX(-10px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(10px); opacity: 0; } }

.logo {
    font-family: var(--font-heading);
    font-size: 54px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--coral), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.u-heartbeat {
    display: inline-block;
    width: 40px; height: 40px;
    margin: 0 -4px;
    position: relative;
    top: 4px;
}
.u-heartbeat svg { width: 100%; height: 100%; }
.u-heartbeat path {
    stroke-dasharray: 60;
    animation: heart-draw 1.5s infinite linear;
}
@keyframes heart-draw { 0% { stroke-dashoffset: 60; } 100% { stroke-dashoffset: -60; } }

.tagline {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 8px;
    animation: fade-in-quote 1s 1s forwards;
    opacity: 0;
}

/* Inputs */
.login-form { display: flex; flex-direction: column; gap: 24px; }

.input-group { position: relative; }

.clean-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.clean-label {
    position: absolute;
    left: 20px; top: 18px;
    color: var(--text-muted);
    font-size: 16px;
    transition: 0.3s ease all;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.clean-input:focus, .clean-input:not(:placeholder-shown) {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px var(--peach);
    background: var(--peach);
}

.clean-input:focus ~ .clean-label, 
.clean-input:not(:placeholder-shown) ~ .clean-label {
    top: -10px;
    font-size: 12px;
    color: var(--coral);
    font-weight: 500;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: -8px;
}

.remember-me {
    display: flex; align-items: center; gap: 8px; color: var(--text-muted); cursor: pointer;
}
.remember-me input { display: none; }
.checkmark {
    width: 18px; height: 18px;
    border: 2px solid #d1d5db; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.remember-me:hover .checkmark { border-color: var(--coral); }
.remember-me input:checked ~ .checkmark {
    background: var(--coral); border-color: var(--coral);
}
.remember-me input:checked ~ .checkmark::after {
    content: ''; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.forgot-link { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: 0.2s; }
.forgot-link:hover { color: var(--coral); text-decoration: underline; }

/* CTA Button */
.cta-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, var(--coral), var(--rose));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244,63,94,0.4);
    background: linear-gradient(to right, #ea580c, #e11d48);
}

.cta-btn:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(244,63,94,0.3); }

/* Ripple */
.ripple {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,0.4);
    transform: scale(0); animation: ripple-anim 0.6s linear; pointer-events: none;
}
@keyframes ripple-anim { 100% { transform: scale(4); opacity: 0; } }

/* Social Logins */
.divider {
    text-align: center; margin: 30px 0; position: relative;
}
.divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e5e7eb; z-index: 1;
}
.divider span {
    background: var(--white); padding: 0 15px; color: var(--text-muted); font-size: 14px; position: relative; z-index: 2;
}

.social-logins { display: flex; gap: 16px; }
.social-btn {
    flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px;
    padding: 12px; border: 1px solid #e5e7eb; border-radius: 100px;
    background: white; color: var(--text-dark); font-family: var(--font-body); font-weight: 500; font-size: 14px;
    cursor: pointer; transition: 0.3s;
}
.social-btn:hover { background: var(--peach); border-color: var(--coral); }

.signup-link { text-align: center; margin-top: 30px; color: var(--text-muted); font-size: 14px; }
.signup-link a { color: var(--coral); font-weight: 600; text-decoration: none; }
.signup-link a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .split-layout { flex-direction: column; }
    .left-panel { flex: none; height: 35vh; }
    .scenic-content { padding: 30px; justify-content: center; }
    .motivational-quote { font-size: 28px; }
    .fitness-widget { display: none; }
    .right-panel { max-width: 100%; border-radius: 24px 24px 0 0; margin-top: -24px; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); transform: translateY(100%); animation: slide-up-panel 0.8s 0.3s forwards; }
    
    @keyframes slide-up-panel { 100% { transform: translateY(0); } }
}
