/* ============================================
   Meal Monitoring - Auth Pages Styles
   Launch & Login Professional Design
   ============================================ */

:root {
    --auth-primary: #0d9488;
    --auth-primary-dark: #0f766e;
    --auth-primary-light: #14b8a6;
    --auth-accent: #f59e0b;
    --auth-bg: #f8fafc;
    --auth-card: #ffffff;
    --auth-text: #1e293b;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --auth-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

.auth-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   LAUNCH PAGE
   ============================================ */

.launch-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #f0f9ff 100%);
    overflow: hidden;
}

.launch-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.launch-logo {
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.35);
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.launch-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.launch-subtitle {
    font-size: 1rem;
    color: var(--auth-text-muted);
    margin: 0 0 2.5rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.launch-loader {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--auth-border);
    border-radius: 4px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--auth-primary), var(--auth-primary-light));
    border-radius: 4px;
    animation: loadProgress 2.2s ease-out forwards;
}

.loader-text {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    margin: 0;
    font-weight: 500;
}

/* Launch background shapes */
.launch-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.launch-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--auth-primary-light), var(--auth-primary));
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--auth-accent), #fbbf24);
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite 1s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    top: 40%;
    left: 10%;
    animation: float 6s ease-in-out infinite 2s;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--auth-bg);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    background: var(--auth-card);
    border-radius: 24px;
    box-shadow: var(--auth-shadow-lg);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* Branding section */
.login-branding {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .login-branding {
        padding: 2rem 1.5rem;
        text-align: center;
    }
}

.brand-logo {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-logo svg {
    width: 28px;
    height: 28px;
    color: white;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
    line-height: 1.5;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-icon {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
}

/* Form section */
.login-form-section {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .login-form-section {
        padding: 2rem 1.5rem;
    }
}

.login-card {
    width: 100%;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 1.75rem;
    letter-spacing: -0.02em;
}

.login-form .form-floating {
    position: relative;
}

.login-form .form-control {
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    padding: 1rem 1rem;
    font-size: 1rem;
    height: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
    outline: none;
}

.login-form .form-floating > label {
    padding: 1rem 1rem;
    color: var(--auth-text-muted);
}

.login-form .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.login-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.btn-login {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    text-align: center;
}

.login-footer code {
    background: var(--auth-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    text-align: center;
}

/* Background pattern */
.login-bg-pattern {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(13, 148, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.login-wrapper > .login-container {
    position: relative;
    z-index: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadProgress {
    0% { width: 0; }
    40% { width: 70%; }
    80% { width: 95%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
