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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #2c1810;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    box-shadow: 0 4px 20px rgba(139, 69, 139, 0.15);
    padding: 1.5rem 0;
    border-bottom: 3px solid #8b4585;
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b4585, #a052a0, #8b4585, transparent);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

header h1 a {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    color: #8b4585;
    text-decoration: none;
    font-size: 3rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(139, 69, 139, 0.2);
    letter-spacing: 1px;
    position: relative;
}

header h1 a::before {
    content: "✨";
    position: absolute;
    left: -2rem;
    top: -0.5rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

header h1 a::after {
    content: "✨";
    position: absolute;
    right: -2rem;
    top: -0.5rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

header nav {
    text-align: center;
    margin-top: 1rem;
}

header nav a {
    color: #6b4c6b;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    background: linear-gradient(135deg, #f8f6f8 0%, #f0e8f0 100%);
    border: 2px solid transparent;
    display: inline-block;
}

header nav a:hover {
    background: linear-gradient(135deg, #8b4585 0%, #a052a0 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 139, 0.3);
}

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

/* Hero section */
#hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #8b4585 0%, #a052a0 50%, #8b4585 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

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

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

.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: #8b4585;
    box-shadow: 0 0 0 3px rgba(139, 69, 139, 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;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

.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;
}

.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;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Georgia', serif;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8b4585 0%, #a052a0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 139, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a052a0 0%, #8b4585 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 139, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-outline {
    background: transparent;
    color: #8b4585;
    border: 2px solid #8b4585;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #8b4585 0%, #a052a0 100%);
    color: white;
    border-color: #8b4585;
}

.btn-full {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 5px solid;
    position: relative;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert::before {
    content: "💫";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
    color: #6b4c6b;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: auto;
    border-top: 3px solid #8b4585;
    position: relative;
}

footer::before {
    content: "✨";
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.6;
}

footer a {
    color: #8b4585;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #a052a0;
    text-shadow: 1px 1px 2px rgba(139, 69, 139, 0.3);
}

/* 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: #6b4c6b;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

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

.hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-banner h1 {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

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

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid #e0d0e0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(139, 69, 139, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b4585, #a052a0, #8b4585);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(139, 69, 139, 0.2);
}

.info-card h3 {
    color: #8b4585;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.deadline {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.deadline::before {
    content: "⏰";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

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

.alert-signup {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #8b4585;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(139, 69, 139, 0.1);
}

.alert-signup::before {
    content: "📧";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.alert-signup h3 {
    color: #8b4585;
    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: #8b4585;
    box-shadow: 0 0 0 3px rgba(139, 69, 139, 0.15);
    outline: none;
}

/* Decorative elements */
.star-decoration {
    color: #8b4585;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    opacity: 0.7;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.decorative-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b4585, #a052a0, #8b4585, transparent);
    margin: 2rem 0;
    border-radius: 2px;
}

/* 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;
    }
}
