@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Theme transitions */
    --transition-speed: 0.3s;
    
    /* Default Dark Mode variables (Moviqo brand style) */
    --bg-gradient: radial-gradient(circle at 0% 0%, #1e0b36 0%, #080a25 50%, #03040f 100%);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    --primary-glow: rgba(168, 85, 247, 0.4);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: #a855f7;
    --success: #10b981;
    --error: #ef4444;
    --highlight: #e0e7ff;
}

[data-theme="light"] {
    --bg-gradient: radial-gradient(circle at 0% 0%, #f3e8ff 0%, #e0f2fe 50%, #f8fafc 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #2563eb 100%);
    --primary-glow: rgba(139, 92, 246, 0.2);
    --input-bg: rgba(15, 23, 42, 0.03);
    --input-border: rgba(15, 23, 42, 0.1);
    --input-focus-border: #8b5cf6;
    --success: #059669;
    --error: #dc2626;
    --highlight: #312e81;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Nav styles */
.header-nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 38px;
    transition: transform 0.2s ease;
}
.logo-container img:hover {
    transform: scale(1.05);
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--input-focus-border);
    box-shadow: 0 0 10px var(--primary-glow);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main layouts */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Brand styling inside card */
.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Form switch toggler */
.toggler-container {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 5px;
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.toggler-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggler-btn.active {
    color: #ffffff;
}

[data-theme="light"] .toggler-btn.active {
    color: #ffffff;
}

.toggler-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.toggle-signup .toggler-slider {
    transform: translateX(100%);
}

/* Auth forms */
.form-wrapper {
    display: flex;
    width: 200%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-signup .form-wrapper {
    transform: translateX(-50%);
}

.auth-form {
    width: 50%;
    padding: 0 5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container svg {
    position: absolute;
    left: 15px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.input-container input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 14px 14px 45px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.input-container input:focus {
    border-color: var(--input-focus-border);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px var(--primary-glow);
}

.input-container input:focus + svg {
    color: var(--input-focus-border);
}

.error-msg {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    display: none;
}

/* Action button style */
.btn-submit {
    width: 100%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

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

/* Global feedback messages */
.feedback-box {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.feedback-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
    display: block;
}

.feedback-box.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    display: block;
}

/* Download Page Layout */
.download-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.welcome-section h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 10px;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.product-showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-badge {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 20px;
}

[data-theme="light"] .product-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
}

.product-showcase h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.product-showcase p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 25px;
}

.features-list {
    list-style: none;
    margin-bottom: 20px;
}

.features-list li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

.features-list li svg {
    color: var(--success);
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Download details card */
.download-card {
    padding: 40px;
    text-align: center;
}

.app-icon-container {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-icon-container img {
    width: 50px;
    height: 50px;
}

.download-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card .meta-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.download-card .meta-info span {
    margin: 0 8px;
    color: var(--text-muted);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary-gradient);
    color: #ffffff;
    text-decoration: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 25px var(--primary-glow);
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-download svg {
    margin-right: 10px;
    width: 22px;
    height: 22px;
}

.logout-nav-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-nav-btn:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

/* Footer style */
.footer-simple {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

/* Loading animations */
.spinner {
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating animation details */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    background: var(--primary-gradient);
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}
