@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

body {
    background-color: rgb(26 20 35 / 1);
    color: rgb(230 222 209 / 1);
    font-family: 'Lato', sans-serif;
    background-repeat: repeat;
}

.auth {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
    padding-bottom: 48px;
    padding-left: 32px;
    padding-bottom: 32px;
    padding-top: 48px;
}

.auth h1 {
    color: rgb(199, 167, 88);
}

.auth h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    text-align: center;
    line-height: 36px;
    margin-top: 24px;
}

.auth .instructions {
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
}

.auth form-container {
}

.auth form {
    background-color: rgb(42 30 51);
    width: 448px;
    display: block;
    padding: 24px;
    padding-top: 8px;
    padding-bottom: 6px;
    padding-left: 24px;
    padding-right: 24px;
    overflow: hidden;
    border-radius: 6px;
    border-color: rgb(61 46 79);
    animation: glow-pulse 3s ease-in-out infinite;
    margin: 0 auto; /* Center the form */
}

@keyframes glow-pulse {
    0%, 100% {
        /*This will create a glowing effect around the element. You can adjust the blur radius (10px), spread radius (5px), and color to suit your design.    */
        box-shadow: 0 0 5px 1px rgba(126, 37, 83, 0.6);
    }
    50% {
        box-shadow: 0 0 15px 3px rgba(126, 37, 83, 0.8);
    }
}

.auth button {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    color: rgb(228, 221, 210);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: rgb(126 37 83 / 1);
    border-radius: 6px;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    display: inline-flex;
    cursor: pointer;
    text-transform: none;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: 0px;
    margin-right: 0px;
    border: 0px;
    line-height: 20px;
}

.auth input {
    background-color: rgba(26, 20, 35, 0.7);
    border: 1px solid rgb(61, 46, 79);
    color: rgb(230, 222, 209);
    border-radius: 6px;
    display: flex;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-stretch: 100%;
    width: 97%;
    margin-bottom: 0px;
    padding-right: 0px;
    padding-left: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 24px;
}

.auth label {
    margin-top: 20px;
    display: block;
    line-height: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.auth a {
    color: rgb(126 37 83 / 1);
    text-decoration: none;
}

.auth a:hover {
    color: rgb(126 37 83 / 0.8);
    text-decoration: none;
}

.auth .other-instructions {
    text-align: center;
    display: block;
    padding: 24px;
    padding-top: 8px;
    padding-bottom: 6px;
    padding-left: 24px;
    padding-right: 24px;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* OAuth Authentication Styles */

.auth-oauth-section {
    margin-top: 0;
    margin-bottom: 32px;
    text-align: center;
}

.auth-oauth-divider {
    position: relative;
    text-align: center;
    margin: 28px 0;
    color: rgb(150, 142, 130);
    font-size: 0.75rem;
    font-weight: 400;
}

.auth-oauth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgb(61, 46, 79);
    z-index: 0;
}

.auth-oauth-divider span {
    background: rgb(42, 30, 51);
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.auth-oauth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background-color: rgb(42, 30, 51);
    color: rgb(230, 222, 209);
    border: 1px solid rgb(61, 46, 79);
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.auth-oauth-button:hover {
    background-color: rgb(52, 40, 61);
    border-color: rgb(126, 37, 83);
    box-shadow: 0 0 10px 2px rgba(126, 37, 83, 0.3);
}

.auth-oauth-button svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.auth-oauth-button-google {
    /* Prominent Google button styling */
    background: linear-gradient(135deg, rgb(52, 40, 61), rgb(62, 45, 71));
    border: 2px solid rgb(126, 37, 83);
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(126, 37, 83, 0.4);
    animation: google-pulse 3s ease-in-out infinite;
}

.auth-oauth-button-google:hover {
    background: linear-gradient(135deg, rgb(62, 50, 71), rgb(72, 55, 81));
    border-color: rgb(146, 57, 103);
    box-shadow: 0 6px 20px rgba(126, 37, 83, 0.6);
    transform: translateY(-2px);
}

@keyframes google-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(126, 37, 83, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(126, 37, 83, 0.6);
    }
}

.auth-oauth-button-google svg {
    width: 24px;
    height: 24px;
    margin-right: 4px;
    padding: 2px;
    vertical-align: middle;
    align-self: center;
}

.auth-oauth-button-github {
    /* GitHub-specific styling for future use */
}

.auth-error-message {
    background-color: rgba(220, 38, 38, 0.2);
    color: rgb(248, 113, 113);
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.4);
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

/* Responsive adjustments for OAuth section */
@media (max-width: 480px) {
    .auth form {
        width: 100%;
        margin: 0 16px;
    }

    .auth-oauth-button {
        font-size: 13px;
        padding: 10px 12px;
    }
}
