/* Root Variables */
:root {
    --primary-green: #A8C4A2;
    --primary-green-dark: #8FAB88;
    --primary-green-light: #C2D6BD;
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --text-light: #FFFFFF;
    --background-light: #F8F9FA;
    --border-color: #E9ECEF;
    --shadow-color: rgba(168, 196, 162, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: var(--text-light);
}

.logo-animation {
    margin-bottom: 30px;
}

.typing-text {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fe-pulse {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.fe-letter {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.fe-letter:nth-child(2) {
    animation-delay: 0.5s;
}

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

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--text-light);
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    font-style: italic;
}

/* Main Content Styles */
.main-content {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
}

.header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.logo p {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.9;
    font-style: italic;
}

.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 0;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content > p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.login-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.login-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    color: var(--text-light);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background: var(--text-light);
    color: var(--primary-green);
    border: 2px solid var(--text-light);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-green);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .typing-text, .fe-pulse {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .login-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .typing-text, .fe-pulse {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
}