* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', serif;
    background-color: #000;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: pageEnter 2s ease-out 0.2s forwards;
}

.entrance-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.content-wrapper {
    text-align: center;
    max-width: 700px;
    padding: 3rem 2rem;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 0.8s forwards;
    position: relative;
}

.quote-section {
    margin-bottom: 5rem;
    position: relative;
}

.quote-section::before {
    content: '∑';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    opacity: 0.03;
    font-family: 'Cormorant Garamond', serif;
    pointer-events: none;
}

.academy-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    font-variant: small-caps;
    opacity: 0;
    animation: fadeInUp 1.8s ease-out 1.2s forwards;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.attribution {
    font-size: 0.9rem;
    opacity: 0.5;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1.8s forwards;
}

.password-section {
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2.2s forwards;
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

label {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

#password-input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: 'EB Garamond', serif;
    text-align: center;
    width: 300px;
    border-radius: 2px;
    transition: all 0.4s ease;
    letter-spacing: 1px;
}

#password-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

#password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-style: italic;
}

#submit-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.4s ease;
    letter-spacing: 1px;
    font-weight: 400;
    text-transform: uppercase;
}

#submit-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

#submit-btn:active {
    transform: translateY(0);
}

#error-message {
    margin-top: 1rem;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-hidden {
    opacity: 0 !important;
}

.error-visible {
    opacity: 1 !important;
}

/* Home link */
.home-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    opacity: 0.1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.home-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.home-link img {
    width: 40px;
    height: 40px;
    filter: brightness(0.8);
}

/* Animations */
@keyframes pageEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .academy-quote {
        font-size: 1.8rem;
    }
    
    .quote-section {
        margin-bottom: 3rem;
    }
    
    #password-input {
        width: 220px;
        padding: 0.7rem 1.2rem;
    }
    
    .home-link {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .home-link img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .academy-quote {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .attribution {
        font-size: 0.9rem;
    }
    
    #password-input {
        width: 200px;
        font-size: 0.9rem;
    }
    
    #submit-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
