/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content styles */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Hero section */
.hero {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.tagline {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}

/* Class grid */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.class-box {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.class-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.class-box:hover::before {
    transform: scaleX(1);
}

.class-box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.class-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.class-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.class-box p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

.footer-links a:hover {
    color: #3498db;
    background: rgba(255,255,255,0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Page content styles (for other pages) */
.page-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.page-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-content h2 {
    color: #34495e;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .class-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .class-box {
        padding: 2rem 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .page-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .class-box {
        padding: 1.5rem 1rem;
    }
    
    .class-icon {
        font-size: 2.5rem;
    }
    
    .class-box h2 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
}
/* Auth Box Styling */
.auth-container {
  max-width: 400px;
  margin: 4rem auto 2rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 36px rgba(50,50,110,0.08);
  text-align: left;
}
.auth-box h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #667eea;
  margin-bottom: 1.3rem;
}
.auth-box label {
  font-weight: 500;
  margin-top: .8rem;
  display: block;
  color: #444;
}
.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="tel"] {
  width: 100%;
  font-size: 1.09rem;
  padding: 0.7rem 1rem;
  margin: .5rem 0 1.1rem 0;
  border: 1px solid #dadada;
  border-radius: 7px;
  outline: none;
  background: #f6f7fa;
  transition: border .2s;
}
.auth-box input:focus {
  border-color: #667eea;
  background: #fff;
}
.btn-primary {
  width: 100%;
  padding: .75rem 0;
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(90deg, #667eea 40%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  box-shadow: 0 2px 8px rgba(100,50,255,0.07);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #667eea 80%, #764ba2 100%);
  box-shadow: 0 4px 16px rgba(100,50,255,0.13);
}
.form-status {
  font-size: 1rem;
  margin: 0.7rem 0 0 0;
  color: #e04f3c;
  min-height: 24px;
}
.toggle-link {
  text-align: center;
  font-size: 0.97rem;
  margin-top: 1rem;
  color: #667eea;
}
.toggle-link a {
  color: #764ba2;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
}
.toggle-link a:hover { color: #3498db; }

/* Responsive for mobile */
@media (max-width: 520px) {
  .auth-container, .auth-box { padding: 1.3rem 1rem; }
}
