/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 24px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    min-width: 250px;
}

/* Progress Bar Container */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
}

/* Progress Bar */
.progress-bar {
    height: 100%;
    background-color: #1a73e8;
    width: 100%;
    transform-origin: left;
}

/* Progress Bar Animation */
@keyframes countdown {
    from {
	transform: scaleX(1);
    }
    to {
	transform: scaleX(0);
    }
}

.progress-bar.active {
    animation: countdown 3s linear forwards;
}

@keyframes modalFadeIn {
    from {
	opacity: 0;
	transform: translateY(-20px);
    }
    to {
	opacity: 1;
	transform: translateY(0);
    }
}

.modal-content p {
    color: #1a73e8;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 16px;
}

.message-box {
    display: flex-start;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;    
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(26, 115, 232, 0.2);
    border-radius: 50%;
    border-top-color: #1a73e8;
    animation: spin 1s ease-in-out infinite;
    margin-right: 12px;
}

@keyframes spin {
    to {
	transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .login-card {
	margin: 16px;
	padding: 24px;
    }

    .modal-content {
	margin: 0 20px;
	padding: 20px;
	min-width: 200px;
    }
}

/* Estilo do botão fechar */
.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.close-button:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.close-button::before,
.close-button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #5f6368;
    border-radius: 1px;
    transition: background-color 0.2s;
}

.close-button:hover::before,
.close-button:hover::after {
    background-color: #1a73e8;
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}
