/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Section */
.header {
  text-align: center;
  padding: 20px 10px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(135deg, #28a745, #a8e063);
  color: #fff;
  padding: 10px 10px;
  border-radius: 10%;
  margin-bottom: 10px;
}
.logo img {
    max-width: 30%;
    max-height: 30%;
    object-fit: contain;
}
.logo-text h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
}

.logo-text p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

/* Auth Buttons */
.auth-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}


/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-outline-dark {
    background: transparent;
    color: #343a40;
    border: 2px solid #343a40;
}

.btn-outline-dark:hover {
    background: #343a40;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Main Container */
.main-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-container h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    position: relative;
}

.main-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

#yearDisplay {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Form Styles */
#businessForm {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.9rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input[readonly] {
    background: rgba(248, 249, 250, 0.8);
    color: #6c757d;
    cursor: not-allowed;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    padding: 0.5rem;
}

/* Submit Button */
#businessForm .btn-primary {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

#businessForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .main-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .main-container h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .main-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra small screens (smartphones portrait) */
@media (max-width: 360px) {
    .header-content {
        padding: 0.3rem;
    }
    
    .logo-section {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .main-container {
        margin: 0.3rem;
        padding: 0.8rem;
        border-radius: 10px;
    }
    
    .main-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    #yearDisplay {
        font-size: 1rem;
    }
    
    .form-group {
        gap: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.7rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    #businessForm .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .user-info span {
        font-size: 0.85rem;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.6s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; }
.form-group:nth-child(9) { animation-delay: 0.9s; }
.form-group:nth-child(10) { animation-delay: 1s; }
.form-group:nth-child(11) { animation-delay: 1.1s; }
.form-group:nth-child(12) { animation-delay: 1.2s; }

/* Loading state for form */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success and Error Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Accessibility improvements */
.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}