@font-face {
    font-family: 'Baskerville';
    src: url('assets/LibreBaskerville-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: #435FAB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.logo {
    /* margin-bottom: 20px; */
    opacity: 0;
    animation: fadeInFloat 2s ease-out forwards;
}

@keyframes fadeInFloat {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo img {
    max-width: 510px;
    height: auto;
}

.email-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 275px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.5s forwards;
}

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

.email-container:focus-within,
.email-container:hover {
    max-width: 335px;
}

.email-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(245, 241, 232, 0.3);
    border-radius: 25px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    background-color: #E5D5BC !important;
    color: #435FAB;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(67, 95, 171, 0.6);
}

.email-input:hover,
.email-input:focus {
    outline: none;
    border: none;
    background-color: #E5D5BC !important;
}

.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #E5D5BC inset !important;
    -webkit-text-fill-color: #435FAB !important;
    background-color: #E5D5BC !important;
}

.error-message {
    color: #FF6B6B;
    font-size: 14px;
    display: block;
    margin-top: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 20px;
    z-index: 1;
    white-space: pre-line;
}

.error-message.show {
    opacity: 1;
}

.signup-btn {
    font-family: 'Baskerville', serif;
    background-color: #E5D5BC;
    color: #435FAB;
    border: none;
    outline: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 19px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.signup-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.signup-btn:hover {
    background-color: #E5D5BC;
    transform: scale(1.05);
}

.signup-btn:active {
    transform: scale(0.98);
}

.signup-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    background-color: transparent;
    color: #E5D5BC;
}

.signup-btn:disabled:hover {
    transform: none;
    background-color: transparent;
    color: #E5D5BC;
}

/* Animated Dots */
.signing-up::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Success Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #435FAB;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-family: 'Baskerville', serif;
    color: #E5D5BC;
    font-size: 32px;
    margin-bottom: 20px;
}

.modal-content p {
    font-family: Arial, sans-serif;
    color: #E5D5BC;
    font-size: 16px;
    margin-bottom: 30px;
}

.modal-btn {
    font-family: 'Baskerville', serif;
    background-color: #E5D5BC;
    color: #435FAB;
    border: none;
    outline: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background-color: #E8E4D8;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo img {
        max-width: 250px;
    }

    .email-input {
        padding: 12px 18px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 330px;
    }

    .email-input {
        padding: 10px 15px;
    }

    .signup-btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-content h2 {
        font-size: 24px;
    }
}

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}