.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Make sure error is hidden by default */
#error {
    display: none;
}

/* Animation for the modal */
.warn-cont {
    transition: opacity 0.3s ease;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.warn-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-30px);
    opacity: 0;
}

.warn-card.show {
    transform: translateY(0);
    opacity: 1;
}

/* Styling for the login button while loading */
.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}