/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-regular: 300;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --leading-tight: 1.1;
    --leading-normal: 1.6;
    --leading-loose: 1.75;

    --fs-display: clamp(3rem, 7vw, 5.6rem);
    --fs-body-lg: 1.125rem;
    --fs-body: 1rem;
    --fs-body-sm: 0.9rem;

    --color-strong: #0f0f0f;
    --color-muted: #6b7280;
    --color-subtle: #64748b;
    --color-brand: #ea580c;

    --tracking-tight: -0.01em;
    --tracking-normal: 0em;
    --tracking-wide: 0.03em;
    --tracking-wider: 0.06em;
}

body {
    font-family: var(--font-family-sans);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    background-attachment: fixed;
    color: var(--color-strong);
    line-height: var(--leading-normal);
    font-weight: var(--font-weight-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Accessible focus styles */
a:focus,
button:focus,
.input:focus {
    outline: 3px solid rgba(234, 88, 12, 0.35);
    outline-offset: 2px;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    z-index: 10;
}

.lang-link {
    color: var(--color-subtle);
    text-decoration: none;
    padding: 0 5px;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.lang-link.active {
    color: var(--color-strong);
    font-weight: var(--font-weight-semibold);
}

.lang-link:hover {
    color: var(--color-strong);
}

.login-link {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #e2e8f0;
    color: var(--color-strong);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.login-link:hover {
    color: #111827;
}

/* Login page */
.login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 24px;
    text-align: left;
}

/* Minimal header (YC-like) */
.site-header {
    width: 100%;
    padding: 16px 24px 0;
}

.site-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    text-decoration: none;
    color: var(--color-strong);
}

.brand-name {
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--tracking-wide);
}

.page-title {
    color: var(--color-subtle);
    font-size: var(--fs-body);
}

/* Centered login card and spacing */
.login-card-centered {
    margin-top: 56px;
}

.login-page .main-content {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-top: 40px;
}

.login-page .logo {
    margin-bottom: 40px;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    letter-spacing: 0;
}

.login-form {
    margin-top: 20px;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 0.9rem;
    color: var(--color-subtle);
}

.input {
    appearance: none;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--color-strong);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.08);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background-color: var(--color-brand);
    border: 1px solid #ea580c;
    color: white;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.02s ease;
}

.btn-primary:hover {
    background-color: #c2410c;
}

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

/* Outline button for login page: orange text + border on white */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid var(--color-brand);
    color: var(--color-brand);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.02s ease;
}

.btn-outline:hover {
    background-color: rgba(234, 88, 12, 0.06);
}

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

/* Disabled button state */
button[disabled],
.btn-outline[disabled],
.btn-primary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-error {
    margin-top: 12px;
    color: #b91c1c;
    font-size: 0.95rem;
    display: none;
}

.form-error.is-visible {
    display: block;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    text-align: center;
    animation: fadeInUp 0.2s ease-out;
    position: relative;
    z-index: 0;
}

.hero {
    margin-bottom: 64px;
    max-width: 600px;
}

.logo {
    font-size: var(--fs-display);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--tracking-wide);
    margin-bottom: 20px;
    color: var(--color-strong);
    line-height: var(--leading-tight);
    animation: fadeInUp 0.3s ease-out 0.05s both;
}

.tagline {
    font-size: var(--fs-body-lg);
    color: var(--color-muted);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-loose);
    margin-bottom: 12px;
    animation: fadeInUp 0.3s ease-out 0.1s both;
}

.accent-line {
    width: 168px;
    height: 1px;
    background-color: var(--color-brand);
    margin: 0 auto;
    animation: fadeInUp 0.3s ease-out 0.15s both;
}

/* Pill container */
.pill-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.3s ease-out 0.2s both;
}

.pill {
    color: var(--color-muted);
    font-size: var(--fs-body);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--tracking-wider);
    position: relative;
    cursor: default;
    transition: color 0.2s ease;
}

.pill:hover {
    color: #374151;
}

.pill::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-brand);
    transition: width 0.2s ease;
}

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

/* Footer */
.footer {
    padding: 32px 24px 24px;
    border-top: 1px solid #e2e8f0;
    background-color: transparent;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: var(--fs-body-sm);
    color: var(--color-subtle);
    line-height: var(--leading-normal);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--tracking-normal);
}

.email-link {
    color: var(--color-brand);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.2s ease;
    position: relative;
}

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

.email-link:hover {
    color: #c2410c;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        padding: 32px 24px;
    }
    
    .hero {
        margin-bottom: 48px;
    }
    
    .accent-line {
        width: 140px;
    }
    
    .pill-container {
        gap: 32px;
    }
    
    .footer {
        padding: 24px 24px 20px;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 24px 20px;
    }
    
    .hero {
        margin-bottom: 40px;
    }
    
    .accent-line {
        width: 112px;
    }
    
    .pill-container {
        gap: 24px;
    }
    
    .pill {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 20px 20px 16px;
    }
    
    .footer-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }
} 