@charset "UTF-8";

@font-face{
	font-family: "Overused Grotesk Regular";
	src: url('Fonts/OverusedGrotesk-Roman.otf');
}

@font-face{
	font-family: "Overused Grotesk Extrabold";
	src: url('Fonts/OverusedGrotesk-ExtraBold.otf');
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#body{
	background: linear-gradient(135deg, #eff1ee 0%, #d4d8d4 100%);
	min-height: 100vh;
	font-family: "Overused Grotesk Regular", Arial, sans-serif;
}

#contenedorForms{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - var(--nav-h));
	padding: calc(var(--nav-h) + 2rem) 1rem 2rem;
}

.auth-container {
	background: #292c33;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	width: 100%;
	max-width: 480px;
	padding: 3rem 2rem;
	position: relative;
	overflow: hidden;
}

.auth-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #cff300, #a8d100);
}

.form-header {
	text-align: center;
	margin-bottom: 2rem;
}

.form-title {
	font-family: "Overused Grotesk Extrabold", Arial, sans-serif;
	font-size: 2rem;
	color: #eff1ee;
	margin-bottom: 0.5rem;
}

.form-subtitle {
	color: #a0a3a0;
	font-size: 1rem;
}

#formInicioSesion{
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

#formRegistro{
	display: none;
	flex-direction: column;
	gap: 1rem;
}

#formRegistro.active {
	display: flex;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.labelFormulario{
	color: #eff1ee;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.inputRegistroInicio {
	font-family: "Overused Grotesk Regular", Arial, sans-serif;
	font-size: 1rem;
	color: #eff1ee;
	padding: 1rem;
	background: rgba(239, 241, 238, 0.05);
	border: 2px solid rgba(239, 241, 238, 0.2);
	border-radius: 12px;
	transition: all 0.3s ease;
	width: 100%;
}

.inputRegistroInicio:focus {
	outline: none;
	border-color: #cff300;
	background: rgba(207, 243, 0, 0.05);
	box-shadow: 0 0 0 3px rgba(207, 243, 0, 0.1);
}

.inputRegistroInicio.error {
	border-color: #ff4757;
	background: rgba(255, 71, 87, 0.05);
}

.error {
	color: #ff4757;
	font-size: 0.85rem;
	margin-top: 0.5rem;
	padding: 0.5rem;
	background: rgba(255, 71, 87, 0.1);
	border-radius: 8px;
	border-left: 3px solid #ff4757;
}

.botonRegistroInicio{
	width: 100%;
	background: linear-gradient(135deg, #cff300 0%, #a8d100 100%);
	color: #292c33;
	border: none;
	padding: 1rem;
	border-radius: 12px;
	font-family: "Overused Grotesk Extrabold", Arial, sans-serif;
	font-size: 1.1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 0.5rem;
}

.botonRegistroInicio:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(207, 243, 0, 0.3);
}

.botonRegistroInicio:active {
	transform: translateY(0);
}

.form-switch {
	text-align: center;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(239, 241, 238, 0.1);
}

.switch-text {
	color: #a0a3a0;
	font-size: 0.9rem;
}

.switch-link {
	color: #cff300;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.3s ease;
}

.switch-link:hover {
	color: #a8d100;
	text-decoration: underline;
}

#divComunicaciones{
	margin: 1rem 0;
	padding: 1rem;
	background: rgba(239, 241, 238, 0.05);
	border-radius: 12px;
	border-left: 3px solid #cff300;
}

#h5Registro{
	font-family: "Overused Grotesk Regular", Arial, sans-serif;
	color: #a0a3a0;
	font-size: 0.85rem;
	line-height: 1.4;
	margin-bottom: 1rem;
}

.checkbox-container {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
	gap: 0.75rem;
}

.custom-checkbox {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(239, 241, 238, 0.3);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	flex-shrink: 0;
	margin-top: 2px;
}

.custom-checkbox:checked {
	background: #cff300;
	border-color: #cff300;
}

.custom-checkbox:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #292c33;
	font-size: 12px;
	font-weight: bold;
}

.labelComunicaciones{
	font-family: "Overused Grotesk Regular", Arial, sans-serif;
	color: #a0a3a0;
	font-size: 0.85rem;
	line-height: 1.4;
	cursor: pointer;
}

#enlacePolitica{
	color: #cff300;
	text-decoration: none;
	transition: color 0.3s ease;
}

#enlacePolitica:hover{
	color: #a8d100;
	text-decoration: underline;
}

/* Animaciones */
.form-content {
	transition: all 0.4s ease-in-out;
}

.form-content.fade-out {
	opacity: 0;
	transform: translateX(-20px);
}

.loading {
	opacity: 0.7;
	pointer-events: none;
}

.botonRegistroInicio.loading::after {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid #292c33;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: inline-block;
	margin-left: 8px;
}

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

@keyframes shake {
	0%, 20%, 40%, 60%, 80% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

/* Responsive */
@media (max-width: 640px) {
	/*#contenedorForms {
		padding: 1rem 0.5rem;
	}*/

	.auth-container {
		padding: 2rem 1.5rem;
		border-radius: 12px;
	}

	.form-title {
		font-size: 1.75rem;
	}

	.inputRegistroInicio {
		padding: 0.875rem;
	}

	.botonRegistroInicio {
		padding: 0.875rem;
	}
}

@media (max-width: 480px) {
	.auth-container {
		padding: 1.5rem 1rem;
		margin: 0.5rem;
	}

	.form-title {
		font-size: 1.5rem;
	}

	.labelComunicaciones, #h5Registro {
		font-size: 0.8rem;
	}
}
.divider-container {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(239, 241, 238, 0.2);
}

.divider-text {
    color: #a0a3a0;
    font-size: 0.9rem;
    font-family: "Overused Grotesk Regular", Arial, sans-serif;
}

/* Estilo para el botón de Google personalizado */
.google-signin-button {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: background-color 0.3s;
}

.google-signin-button:hover {
    background: #3367d6;
}

.google-signin-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Estilo para el botón de Apple Sign-In */
.apple-signin-button {
    background: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 10px;
    font-family: "Overused Grotesk Regular", Arial, sans-serif;
}

.apple-signin-button:hover {
    background: #1a1a1a;
}

.apple-signin-button:disabled {
    background: #555555;
    cursor: not-allowed;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* Estilo para el botón de Facebook personalizado */
.facebook-signin-button {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: "Overused Grotesk Regular", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.facebook-signin-button:hover {
    background: #166fe5;
}

.facebook-signin-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.facebook-icon {
    width: 20px;
    height: 20px;
}

/* Personalización del botón de Google Sign-In oficial */
.g_id_signin {
    margin-top: 1rem;
}

/* Ajustes para tema oscuro */
@media (prefers-color-scheme: dark) {
    .google-signup-button {
        background: rgba(255, 255, 255, 0.1);
        color: #eff1ee;
        border: 1px solid rgba(239, 241, 238, 0.3);
    }
    
    .google-signup-button:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Responsive para móviles */
@media (max-width: 640px) {
    .google-signup-button {
        font-size: 0.95rem;
        padding: 0.875rem;
    }
}
.success {
    color: #388e3c;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
}
.email-error {
    display: none; /* Inicialmente oculto */
}

.email-success {
    display: none; /* Inicialmente oculto */
}
/* Estilos para recuperación de contraseña */
.forgot-password-link {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password-link a {
    color: #cff300;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #a8d100;
    text-decoration: underline;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.botonRegistroInicio.secondary {
    background: rgba(239, 241, 238, 0.1);
    color: #eff1ee;
    border: 2px solid rgba(239, 241, 238, 0.3);
}

.botonRegistroInicio.secondary:hover {
    background: rgba(239, 241, 238, 0.2);
    transform: translateY(-2px);
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.message.success {
    background: rgba(56, 142, 60, 0.1);
    color: #388e3c;
    border-left: 3px solid #388e3c;
}

.message.error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border-left: 3px solid #ff4757;
}

.message.info {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border-left: 3px solid #2196f3;
}
/* ============= MEJORAS PARA CAMPOS DE CONTRASEÑA ============= */
.password-field-container {
    position: relative;
    width: 100%;
}

.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-visibility-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #a0a3a0;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    z-index: 2;
}

.password-visibility-toggle:hover {
    color: #cff300;
    background: rgba(207, 243, 0, 0.1);
}

.password-security-info {
    margin-top: 8px;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #a0a3a0;
}

.password-strength-bar {
    height: 4px;
    background: #444;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak { 
    background: #ff4757; 
    width: 25%; 
}
.password-strength-medium { 
    background: #ffa502; 
    width: 50%; 
}
.password-strength-good { 
    background: #2ed573; 
    width: 75%; 
}
.password-strength-strong { 
    background: #1e90ff; 
    width: 100%; 
}

.password-requirements-list {
    margin-top: 8px;
    font-size: 0.75rem;
}

.password-requirement {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    color: #a0a3a0;
}

.password-requirement.valid {
    color: #2ed573;
}

.password-requirement.invalid {
    color: #a0a3a0;
}

.requirement-icon {
    margin-right: 6px;
    font-size: 0.7rem;
    width: 12px;
    text-align: center;
}

.password-generator-btn {
    background: rgba(207, 243, 0, 0.1);
    color: #cff300;
    border: 1px solid #cff300;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    width: 100%;
    font-family: "Overused Grotesk Regular", Arial, sans-serif;
}

.password-generator-btn:hover {
    background: rgba(207, 243, 0, 0.2);
    transform: translateY(-1px);
}