/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: rgb(var(--bg-primary));
    color: rgb(var(--text-primary));
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal) ease;
}

/* Container and layout */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg,
    rgb(var(--accent-primary)) 0%,
    rgb(var(--accent-secondary)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(var(--accent-primary), 0.2);
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
    rgba(var(--accent-primary), 0) 0%,
    rgba(var(--accent-primary), 0.7) 50%,
    rgba(var(--accent-primary), 0) 100%
    );
}

.header p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgb(var(--text-secondary));
    font-size: 1.2rem;
}

/* Card Styles */
.card {
    background: rgb(var(--card-bg));
    border: 1px solid rgba(var(--border-light), 0.6);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) ease;
    box-shadow: 0 10px 40px rgba(var(--shadow-color), 0.08);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg,
    rgb(var(--accent-primary)) 0%,
    rgb(var(--accent-secondary)) 100%);
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(var(--accent-primary), 0.03) 0%,
    rgba(var(--accent-secondary), 0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.card:hover {
    box-shadow: 0 15px 50px rgba(var(--shadow-color), 0.12);
    transform: translateY(-3px);
}

.auth-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.card h2 {
    color: rgb(var(--accent-primary));
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card h3 {
    color: rgb(var(--text-primary));
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Section Styles */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: sectionFadeIn 0.5s ease-out forwards;
}

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer */
footer {
    background: rgb(var(--bg-secondary));
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(var(--border-light), 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.2rem;
}

.footer-links a {
    color: rgb(var(--accent-primary));
    text-decoration: none;
    transition: color var(--transition-fast) ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: rgb(var(--accent-primary));
    transition: width var(--transition-normal) ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Skip to content for keyboard users */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg,
    rgb(var(--accent-primary)) 0%,
    rgb(var(--accent-secondary)) 100%);
    color: white;
    z-index: 1001;
    transition: top 0.3s ease;
    font-weight: 600;
    border-radius: 0 0 10px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1rem;
    }

    .card {
        padding: 1.8rem;
    }
}