@import url(https://fonts.googleapis.com/css?family=Google+Sans+Text);

:root {
    --bg-color: rgb(255, 255, 255);

    --font-color: rgb(31, 41, 55);
    --color-primary: rgb(147, 51, 234);

    --gray-800: rgb(31, 41, 55);
    --gray-700: rgb(55, 65, 81);
    --gray-600: rgb(75, 85, 99);
    --gray-500: rgb(107, 114, 128);
    --gray-400: rgb(156, 163, 175);
    --gray-300: rgb(209 213 219);
}

html {
    font-family: 'Google Sans Text', 'Google Sans';
    font-size: 14px;
    color-scheme: light;
    background: var(--bg-color);
    color: var(--font-color);
}

body {
    background-color: var(--bg-color);
    color: var(--font-color);
}

h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-Poppins {
    font-family: 'Poppins';
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Spinner styles */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.other-link {
    text-align: center;
    margin-top: 1rem;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0);

    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;

    gap: 0.75rem;

    padding: 0.75rem 1rem;
}

.google-btn img {
    width: 1.25rem;
}

.google-btn:hover {
    background-color: rgb(249, 250, 251);
}

.max-w-sm {
    max-width: 24rem;
}

.text-subtitle {
    color: var(--gray-500);
}

.or-line {
    flex-grow: 1;
    border-top: 1px solid rgb(209, 213, 219);
}

.or-text {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.25rem;

    flex-shrink: 1;

    margin: 0 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }


    100% {
        transform: rotate(360deg);
    }
}

/* Force light mode for autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: black !important;
    transition: background-color 5000s ease-in-out 0s;
    color-scheme: light;
}