/* Design System Variables */
:root {
    /* Brand Colors - Enhanced Palette */
    --color-primary: #805DBB;
    --color-primary-hover: #694C99;
    --color-primary-light: #f3eef9;
    --color-primary-dark: #402F5E;

    /* Accent Colors */
    --color-accent-gold: #f59e0b;
    --color-accent-gold-light: #fef3c7;
    --color-accent-teal: #0891b2;
    --color-accent-teal-light: #cffafe;
    --color-accent-pink: #ec4899;
    --color-accent-purple: #a855f7;

    /* Neutrals */
    --color-text-primary: #1f2937;
    --color-text-secondary: #374151;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-bg-white: #ffffff;
    --color-bg-subtle: #f9fafb;
    --color-bg-muted: #f3f4f6;

    /* Status Colors */
    --color-success: #047857;
    --color-success-bg: rgba(52, 211, 153, 0.18);
    --color-success-dark: #155724;
    --color-warning: #b45309;
    --color-warning-bg: rgba(251, 191, 36, 0.2);
    --color-error: #b91c1c;
    --color-error-bg: rgba(248, 113, 113, 0.2);

    /* Container Sizes */
    --container-sm: 600px;
    --container-md: 800px;
    --container-lg: 1100px;

    /* Spacing */
    --padding-sm: 1.5rem;
    --padding-md: 2rem;
    --padding-lg: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.875rem;
    --font-size-sm: 0.95rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

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

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    background: #f8f9fa;
    min-height: 100vh;
    font-size: var(--font-size-base);
}

#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header h1 {
    text-align: center;
    margin: 0 auto 1rem;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

header h1 a,
header h1 a.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

header h1 a:hover {
    opacity: 0.85;
}

.site-logo {
    height: 100px;
    width: auto;
    display: block;
}

@media (min-width: 1200px) {
    .site-logo {
        height: 130px;
    }
}

@media (min-width: 1600px) {
    .site-logo {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .site-logo {
        height: 85px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 70px;
    }
}

header nav {
    text-align: center;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    display: none;
}

header nav a {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
}

header nav a:hover {
    background: #f3f4f6;
    color: #1f2937;
}

header nav a.btn-register {
    background: #805DBB;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

header nav a.btn-register:hover {
    background: #694C99;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 93, 187, 0.25);
}

.nav-toggle-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.nav-toggle-button {
    display: none;
    position: absolute;
    top: 1.1rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.25rem;
    border-radius: 12px;
    background: rgba(128, 93, 187, 0.1);
    border: 1px solid rgba(128, 93, 187, 0.3);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    z-index: 1101;
}

.nav-toggle-button:hover,
.nav-toggle-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(128, 93, 187, 0.2);
}

.nav-toggle-button span {
    display: block;
    width: 58%;
    height: 3px;
    background: #805DBB;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-checkbox:checked + .nav-toggle-button span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle-checkbox:checked + .nav-toggle-button span:nth-child(2) {
    opacity: 0;
}

.nav-toggle-checkbox:checked + .nav-toggle-button span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    header {
        padding: 1.2rem 1rem 1.5rem;
        align-items: center;
    }

    header h1 {
        margin-bottom: 0;
        text-align: center;
        padding: 0;
    }

    header nav {
        position: fixed;
        inset: 0 auto 0 0;
        width: 270px;
        height: 100vh;
        padding: 4.5rem 1.75rem 2rem;
        background: linear-gradient(180deg, #fef9ff 0%, #f7f0f7 100%);
        box-shadow: 12px 0 35px rgba(128, 93, 187, 0.18);
        border-right: 2px solid rgba(128, 93, 187, 0.12);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        transform: translateX(-110%);
        transition: transform 0.35s ease;
        z-index: 1100;
    }

    .nav-toggle-button {
        display: flex;
    }

    header nav a {
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0.65rem 0.75rem;
        background: rgba(128, 93, 187, 0.08);
        border-radius: 12px;
        border: 1px solid rgba(128, 93, 187, 0.08);
    }

    .nav-logo {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0 1.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(128, 93, 187, 0.15);
        background: transparent;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .nav-logo img {
        height: 60px;
        width: auto;
    }

    .nav-toggle-checkbox:checked + .nav-toggle-button + nav {
        transform: translateX(0);
    }

    .nav-toggle-checkbox:checked + .nav-toggle-button {
        box-shadow: 0 6px 18px rgba(128, 93, 187, 0.2);
    }
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 10, 15, 0.35);
    z-index: 1050;
}

.nav-toggle-checkbox:checked + .nav-toggle-button + nav + .nav-overlay {
    display: block;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero section */
#hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #805DBB 0%, #694C99 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.welcome-message {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
#features {
    margin-bottom: 3rem;
}

#features h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.feature h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Auth forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0d0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #805DBB;
    box-shadow: 0 0 0 3px rgba(128, 93, 187, 0.15);
    background: white;
    transform: translateY(-1px);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links p {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-section h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.profile-info p,
.security-info p,
.data-info p {
    margin-bottom: 0.5rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-activity {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-activity h3 {
    color: #333;
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.activity-time {
    color: #666;
    font-size: 0.875rem;
}

.activity-description {
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-family: var(--font-family-base);
}

.btn-primary {
    background: #805DBB;
    color: white;
    box-shadow: 0 2px 4px rgba(128, 93, 187, 0.2);
}

.btn-primary:hover {
    background: #694C99;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 93, 187, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: #805DBB;
    color: white;
    border-color: #805DBB;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Special button variants for specific use cases */
.btn-download,
.btn-upload,
.btn-delete {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-upload {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    border-color: transparent;
}

.btn-upload:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 93, 187, 0.3);
}

.btn-download {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-download:hover {
    background: var(--color-primary-light);
}

.btn-delete {
    background: var(--color-bg-white);
    color: var(--color-error);
    border-color: var(--color-error);
}

.btn-delete:hover {
    background: var(--color-error-bg);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    position: relative;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #16a34a;
}

/* Footer */
footer {
    background: #ffffff;
    color: #6b7280;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    position: relative;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    display: block;
    margin: 0 auto;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #805DBB;
}

footer p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0.5rem 0;
}

footer a {
    color: #805DBB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

footer a:hover {
    color: #694C99;
}

/* Responsive design */
@media (max-width: 768px) {
    header nav a {
        display: block;
        margin: 0.25rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Password Requirements */
.password-requirements {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
}

.password-requirements li {
    margin-bottom: 0.25rem;
}

.requirement-met {
    color: #28a745;
}

.requirement-not-met {
    color: #dc3545;
}

/* Form Validation */
.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.error input {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Description */
.auth-description {
    color: #805DBB;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

/* Dance Competition Specific Styles */
.hero-banner {
    background: linear-gradient(135deg, #805DBB 0%, #694C99 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.competition-date {
    background: rgba(255,255,255,0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #805DBB;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.deadline {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
}

.deadline h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.alert-signup {
    background: #f9fafb;
    border: 2px solid #805DBB;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.alert-signup h3 {
    color: #805DBB;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.alert-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: end;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.alert-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0d0e0;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.alert-form input[type="email"]:focus {
    border-color: #805DBB;
    box-shadow: 0 0 0 3px rgba(128, 93, 187, 0.15);
    outline: none;
}

/* Decorative elements */
.decorative-line {
    height: 2px;
    background: #e5e7eb;
    margin: 2rem 0;
    border-radius: 1px;
}

/* Standardized Page Components */

/* Page Containers */
.page-container-sm {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: var(--padding-md) var(--padding-sm);
}

.page-container-md {
    max-width: var(--container-md);
    margin: 0 auto;
    padding: var(--padding-md);
}

.page-container-lg {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: var(--padding-md) var(--padding-sm);
}

/* Content Cards/Sections */
.content-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--padding-md);
    box-shadow: var(--shadow-sm);
}

.content-section {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: var(--padding-md);
    margin-bottom: var(--padding-md);
    box-shadow: var(--shadow-md);
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: var(--padding-md);
    padding-bottom: var(--padding-sm);
    border-bottom: 2px solid var(--color-primary);
}

.page-header h1 {
    color: var(--color-primary);
    font-size: var(--font-size-3xl);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

/* Hero Banners */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    padding: var(--padding-lg) var(--padding-md);
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--padding-md);
    box-shadow: var(--shadow-md);
}

.hero-section h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* Info Boxes */
.info-box {
    background: var(--color-primary-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: var(--padding-sm);
    margin: var(--padding-sm) 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-box-success {
    background: var(--color-success-bg);
    border-left-color: var(--color-success);
    color: var(--color-success-dark);
}

.info-box-warning {
    background: var(--color-warning-bg);
    border-left-color: var(--color-warning);
    color: var(--color-warning);
}

.info-box-error {
    background: var(--color-error-bg);
    border-left-color: var(--color-error);
    color: var(--color-error);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

p {
    line-height: var(--line-height-relaxed);
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--color-text-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    word-break: break-word;
    max-width: 100%;
}

.status-pill-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-pill-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.status-pill-error {
    background: var(--color-error-bg);
    color: var(--color-error);
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .competition-date {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .alert-form {
        flex-direction: column;
        align-items: center;
    }
    
    .alert-form input[type="email"] {
        min-width: 100%;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    /* General responsive improvements */
    header {
        padding: 1rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.25rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-banner h1 {
        font-size: 2rem;
    }

    .competition-date {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    main {
        padding: 0.5rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    footer {
        padding: 1rem 0;
    }

    footer p {
        font-size: 0.75rem;
    }
}

/* ========================================
   PROFESSIONAL ENHANCEMENTS
   ======================================== */

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply fade-in to main content sections */
.info-section,
.dashboard-section,
.content-section,
.auth-form {
    animation: fadeIn 0.6s ease-out;
}

/* Stagger animations for multiple cards */
.feature-grid > *:nth-child(1) { animation: fadeIn 0.6s ease-out 0.1s backwards; }
.feature-grid > *:nth-child(2) { animation: fadeIn 0.6s ease-out 0.2s backwards; }
.feature-grid > *:nth-child(3) { animation: fadeIn 0.6s ease-out 0.3s backwards; }
.feature-grid > *:nth-child(4) { animation: fadeIn 0.6s ease-out 0.4s backwards; }

.category-card-grid > *:nth-child(1) { animation: slideInLeft 0.5s ease-out 0.1s backwards; }
.category-card-grid > *:nth-child(2) { animation: fadeIn 0.5s ease-out 0.2s backwards; }
.category-card-grid > *:nth-child(3) { animation: fadeIn 0.5s ease-out 0.3s backwards; }
.category-card-grid > *:nth-child(4) { animation: fadeIn 0.5s ease-out 0.4s backwards; }
.category-card-grid > *:nth-child(5) { animation: slideInRight 0.5s ease-out 0.5s backwards; }

/* Enhanced Hero Section with Background Pattern */
#hero,
.hero-banner,
.hero-section {
    background:
        linear-gradient(135deg, rgba(128, 93, 187, 0.95) 0%, rgba(61, 39, 137, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Cards with Depth */
.feature,
.info-card,
.dashboard-card,
.content-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 15px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(128, 93, 187, 0.1);
}

.feature:hover,
.info-card:hover,
.dashboard-card:hover,
.content-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(128, 93, 187, 0.15);
    border-color: rgba(128, 93, 187, 0.3);
}

/* Accent Border on Cards */
.feature::before,
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--color-primary) 0%,
        var(--color-accent-purple) 50%,
        var(--color-accent-pink) 100%);
    border-radius: 12px 12px 0 0;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Accent Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
    max-width: 100%;
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: white;
}

.badge-gold {
    background: linear-gradient(135deg, var(--color-accent-gold), #fbbf24);
    color: #78350f;
}

.badge-teal {
    background: linear-gradient(135deg, var(--color-accent-teal), #06b6d4);
    color: white;
}

/* Floating CTA Effect */
.btn-primary,
.btn-register {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-register::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after,
.btn-register:hover::after {
    width: 300px;
    height: 300px;
}

/* Section Headers with Accent */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold));
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(128, 93, 187, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image:
        linear-gradient(rgba(128, 93, 187, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 93, 187, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-gold-light) 100%);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

/* Icon Styles (for when you add icons) */
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-gold-light));
    box-shadow: 0 4px 12px rgba(128, 93, 187, 0.15);
}

.icon-wrapper svg,
.icon-wrapper i {
    font-size: 1.75rem;
    color: var(--color-primary);
}

/* Timeline Dots */
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Loading Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Decorative Shapes */
.shape-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-gold);
    bottom: -100px;
    left: -100px;
}

/* Enhanced Input Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 3px rgba(128, 93, 187, 0.1),
        0 4px 12px rgba(128, 93, 187, 0.15);
    transform: translateY(-1px);
}

/* Smooth Page Transitions */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    * {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Print Styles */
@media print {
    .nav-toggle-button,
    .btn,
    header nav,
    footer {
        display: none;
    }
}
