body {
    background-color: white;
    color: black;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    text-align: center;
}

.welcome-text {
    font-size: 3rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
    margin-bottom: 2rem;
}

.auth-buttons {
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.5s forwards;
    /* Delay the buttons slightly */
}

.btn {
    padding: 10px 30px;
    font-size: 1.2rem;
    margin: 0 10px;
    cursor: pointer;
    background-color: transparent;
    color: black;
    border: 2px solid black;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: black;
    color: white;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    /* White background */
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    /* More rounded */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    animation: modalScaleIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    /* Bouncy effect */
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    color: #888;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: black;
}

h2 {
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 1.8rem;
    color: #333;
}

.subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.social-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 30px;
    /* Pill shape */
    background-color: transparent;
    color: black;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
    font-family: inherit;
}

.social-btn:hover {
    background-color: #f0f0f0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #666;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 10px;
}

.auth-input {
    width: 100%;
    padding: 14px;
    /* Slightly larger padding */
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly rounded corners */
    box-sizing: border-box;
    background-color: transparent;
    color: black;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: #2b7de9;
    /* Blue accent on focus */
}

.submit-btn {
    width: 100%;
    background-color: #3b82f6;
    /* Nice blue */
    color: white;
    border: none;
    padding: 12px;
    margin-top: 25px;
    border-radius: 30px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2563eb;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .welcome-text {
        font-size: 2rem;
        padding: 0 10px;
    }

    .container {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        /* Prevent buttons from getting too wide on tablets */
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        margin: 0;
        /* Remove horizontal margin */
        padding: 12px 0;
        /* Larger touch target */
    }

    .modal-content {
        width: 85%;
        margin: 20% auto;
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }
}