/* Importação das regras de fonte que definimos anteriormente */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'Hind';
    src: url('../fonts/Hind-Regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Hind';
    src: url('../fonts/Hind-Medium.woff2') format('woff2');
    font-weight: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Hind', sans-serif;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- LADO ESQUERDO: DESTAQUE --- */
.login-left {
    flex: 1.2; /* Um pouco maior que o lado direito no Desktop */
    background: linear-gradient(135deg, rgba(25, 27, 28, 0.9), rgba(25, 27, 28, 0.7)), 
                url('../img/bg-login.jpg'); /* Aqui você coloca sua imagem futuramente */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.left-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.left-content p {
    font-size: 1.2rem;
    max-width: 500px;
    opacity: 0.9;
    font-weight: 400;
}

/* --- LADO DIREITO: FORMULÁRIO --- */
.login-right {
    flex: 0.8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.row-form {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.row-form img {
    max-width: 150px;
    margin-bottom: 30px;
}

.row-form h2 {
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 5px;
}

.row-form h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #191B1C;
    margin-bottom: 40px;
}

/* --- INPUTS E BOTÃO --- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Hind', sans-serif;
    font-size: 16px;
    background: #fafafa;
    transition: 0.3s;
}

input:focus {
    border-color: #191B1C;
    outline: none;
    background: #fff;
}

button {
    background: #191B1C; /* Cor padrão do seu menu lateral */
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

button:hover {
    background: #333;
    transform: translateY(-2px);
}


.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fde8e8; /* Vermelho muito claro */
    color: #c81e1e; /* Vermelho escuro para contraste */
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #f8b4b4;
    margin-bottom: 20px;
    font-family: 'Hind', sans-serif;
    font-size: 14px;
    font-weight: 500;
    animation: fadeInDown 0.3s ease-out;
}

.alert-error i {
    font-size: 18px;
}

/* Animação suave para a mensagem aparecer */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 1024px) {
    .login-left {
        display: none; /* Esconde a lateral esquerda no mobile conforme pedido */
    }

    .login-right {
        flex: 1;
        background: #f5f5f5;
    }

    .row-form {
        background: #fff;
        padding: 40px 30px;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }
}


/* Cadastro */
/* Ajustes específicos para o formulário de cadastro */
.row-form.cadastro { 
	max-width: 600px; 
}

/* Forçamos o formulário a usar Grid em vez do Flex do login.css */
.row-form.cadastro form {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	text-align: left;
}

.full-width { 
	grid-column: span 2; 
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* Aplicando o estilo do login.css em TODOS os inputs de texto */
.row-form.cadastro input[type="text"],
.row-form.cadastro input[type="email"],
.row-form.cadastro input[type="password"] {
	width: 100% !important;
	padding: 15px !important;
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
	font-family: 'Hind', sans-serif !important;
	font-size: 16px !important;
	background: #fafafa !important;
	margin-top: 5px !important;
	transition: 0.3s;
}

.row-form.cadastro input:focus {
	border-color: #191B1C !important;
	outline: none !important;
	background: #fff !important;
}

.row-form.cadastro label {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	margin-left: 5px;
	text-transform: uppercase;
}

.login-right { 
	overflow-y: auto; 
	padding: 40px; 
}

/* Responsividade */
@media (max-width: 768px) {
	.row-form.cadastro form { 
		grid-template-columns: 1fr; 
	}
	.full-width { 
		grid-column: span 1; 
	}
}

/* POPUP */
/* Overlay */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 9999;
}

.popup-content {
    background: #fff; padding: 40px; border-radius: 20px; text-align: center;
    max-width: 350px; width: 90%; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Foguete Azul */
.rocket-anim { 
    font-size: 70px; 
    color: #3498db; /* Azul Vibrante */
    animation: bounce 0.8s infinite alternate; 
}

.rocket-launching { 
    animation: launch 0.7s ease-in forwards !important; 
}

@keyframes bounce {
    from { transform: translateY(0); filter: drop-shadow(0 0 0px rgba(52, 152, 219, 0)); }
    to { transform: translateY(-20px); filter: drop-shadow(0 10px 10px rgba(52, 152, 219, 0.3)); }
}

@keyframes launch {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-600px); opacity: 0; }
}

/* Ícones de Status */
.status-icon { font-size: 70px; margin-bottom: 15px; }

/* Mensagem de Erro (Vermelho) */
.status-icon.error-icon { color: #e74c3c; }
.text-error { color: #e74c3c; font-weight: bold; }

/* Mensagem de Sucesso (Verde) */
.status-icon.success-icon { color: #27ae60; }
.text-success { color: #27ae60; font-weight: bold; }

#popupTitulo { font-family: 'Poppins', sans-serif; font-size: 22px; margin: 15px 0 5px; }
#popupMensagem { font-size: 15px; color: #555; line-height: 1.4; }



.btn-popup-close {
    display: none; 
    margin-top: 20px; 
    width: 100%;
    background: #e74c3c !important; /* Vermelho para erro */
    color: #fff !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
}

.btn-popup-close:hover {
    background: #c0392b !important;
}