/* ===== MODERN AUTH DESIGN - LEONIX COLORS ===== */ 

/* Base Styles */
.auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(135deg, #0f2e2c 0%, #1a3c39 50%, #0f2e2c 100%);
	position: relative;
	overflow: hidden;
	margin-top: 80px; /* Espacio para el nav */
}

/* Background Elements - Same as About Us */
.auth-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.floating-shapes {
	position: relative;
	width: 100%;
	height: 100%;
}

.shape {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle, #e8f8f0);
	opacity: 0.8;
	z-index: 0;
	filter: blur(120px);
	animation: float 6s ease-in-out infinite;
}

.shape-1 {
	width: 516px;
	height: 516px;
	bottom: -200px;
	left: -200px;
	background: linear-gradient(45deg, #81c784, #66bb6a);
	opacity: 0.7;
	animation-delay: 0s;
}

.shape-2 {
	width: 516px;
	height: 516px;
	top: -100px;
	right: -100px;
	background: linear-gradient(45deg, #81c784, #66bb6a);
	opacity: 0.6;
	animation-delay: 2s;
}

.shape-3 {
	width: 300px;
	height: 300px;
	bottom: 20%;
	left: 20%;
	background: linear-gradient(45deg, #81c784, #66bb6a);
	opacity: 0.5;
	animation-delay: 4s;
}

.shape-4 {
	width: 400px;
	height: 400px;
	bottom: 10%;
	right: 10%;
	background: linear-gradient(45deg, #81c784, #66bb6a);
	opacity: 0.6;
	animation-delay: 1s;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px) rotate(0deg);
	}
	50% {
		transform: translateY(-20px) rotate(180deg);
	}
}

/* Main Content */
.auth-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
}

.auth-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.auth-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Header */
.auth-header {
	text-align: center;
	margin-bottom: 32px;
}

.logo-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 16px;
}

.auth-title {
	font-family: "Lexend", sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: white;
	margin: 0;
	text-shadow: 0 4px 20px rgba(0, 168, 107, 0.3);
}

.auth-subtitle {
	font-family: "Lexend", sans-serif;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	line-height: 1.5;
}

/* Tab Navigation */
.auth-tabs {
	display: flex;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 32px;
	gap: 4px;
}

.tab-button {
	flex: 1;
	padding: 12px 16px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-family: "Lexend", sans-serif;
	font-weight: 600;
	font-size: 14px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tab-button.active {
	background: #00a86b;
	color: white;
	box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.tab-button:hover:not(.active) {
	color: white;
	background: rgba(255, 255, 255, 0.1);
}

/* Forms */
.auth-form {
	display: none;
}

.auth-form.active {
	display: block;
	animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Form Groups */
.form-group {
	margin-bottom: 20px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "Lexend", sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: white;
	margin-bottom: 8px;
}

/* Form Inputs */
.form-input,
.form-select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	font-family: "Lexend", sans-serif;
	font-size: 14px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
	outline: none;
	border-color: #00a86b;
	box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2);
	background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.form-select option {
	background: #1a3c39;
	color: white;
}

/* Password Input Container */
.password-input-container {
	position: relative;
	display: flex;
	align-items: center;
}

.password-input-container .form-input {
	padding-right: 50px;
}

.password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.6);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-toggle:hover {
	color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.1);
}

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

/* Input with Prefix/Suffix */
.input-with-prefix {
	display: flex;
	align-items: center;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
	transition: all 0.3s ease;
}

.input-with-prefix:focus-within {
	border-color: #00a86b;
	box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2);
}

.input-prefix,
.input-suffix {
	padding: 12px 12px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.8);
	font-family: "Lexend", sans-serif;
	font-size: 14px;
	font-weight: 500;
	border: none;
	white-space: nowrap;
}

.input-with-prefix .form-input {
	border: none;
	border-radius: 0;
	padding: 12px 16px;
	box-shadow: none;
}

.input-with-prefix .form-input:focus {
	box-shadow: none;
}

/* Form Actions */
.form-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 24px;
}

.forgot-link {
	color: #00a86b;
	text-decoration: none;
	font-family: "Lexend", sans-serif;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.forgot-link:hover {
	color: #00ffae;
}

/* Submit Button */
.submit-button {
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #00a86b, #00995a);
	color: white;
	border: none;
	border-radius: 12px;
	font-family: "Lexend", sans-serif;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px rgba(0, 168, 107, 0.3);
}

.submit-button:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 168, 107, 0.4);
	background: linear-gradient(135deg, #00995a, #008a4a);
}

.submit-button:active:not(:disabled) {
	transform: translateY(0);
}

.submit-button:disabled {
	background: #444;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.loading-spinner {
	display: none;
	align-items: center;
	justify-content: center;
}

/* Form Footer */
.form-footer {
	text-align: center;
}

.switch-text {
	font-family: "Lexend", sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

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

.switch-link:hover {
	color: #00ffae;
}

/* Message Box */
.message-box {
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 20px;
	font-family: "Lexend", sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	display: none;
}

.message-box.error {
	background: rgba(244, 67, 54, 0.1);
	border: 1px solid rgba(244, 67, 54, 0.3);
	color: #f44336;
}

.message-box.success {
	background: rgba(76, 175, 80, 0.1);
	border: 1px solid rgba(76, 175, 80, 0.3);
	color: #4caf50;
}

.message-box.warning {
	background: rgba(255, 152, 0, 0.1);
	border: 1px solid rgba(255, 152, 0, 0.3);
	color: #ff9800;
}

/* ===== MODO CLARO ===== */
.auth-container {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%) !important;
}

.auth-card {
	background: rgba(255, 255, 255, 0.95) !important;
	border: 1px solid rgba(0, 0, 0, 0.1) !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.auth-title {
	color: #1a1a1a !important;
	text-shadow: 0 4px 20px rgba(0, 168, 107, 0.2) !important;
}

.auth-subtitle {
	color: rgba(0, 0, 0, 0.7) !important;
}

.auth-tabs {
	background: rgba(0, 0, 0, 0.1) !important;
}

.tab-button {
	color: rgba(0, 0, 0, 0.7) !important;
}

.tab-button.active {
	background: #00a86b !important;
	color: white !important;
	box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3) !important;
}

.tab-button:hover:not(.active) {
	color: #000000 !important;
	background: rgba(0, 0, 0, 0.1) !important;
}

.form-label {
	color: #000000 !important;
}

.form-input,
.form-select {
	background: rgba(0, 0, 0, 0.08) !important;
	color: #000000 !important;
	border-color: #333333 !important;
}

.form-input:focus,
.form-select:focus {
	border-color: #00a86b !important;
	background: rgba(0, 0, 0, 0.12) !important;
	box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2) !important;
}

.form-input::placeholder {
	color: #666666 !important;
}

.password-toggle {
	color: rgba(0, 0, 0, 0.5) !important;
}

.password-toggle:hover {
	color: rgba(0, 0, 0, 0.7) !important;
	background: rgba(0, 0, 0, 0.1) !important;
}

.input-with-prefix {
	background: rgba(0, 0, 0, 0.08) !important;
	border-color: #333333 !important;
}

.input-prefix,
.input-suffix {
	background: rgba(0, 0, 0, 0.1) !important;
	color: #666666 !important;
}

.switch-text {
	color: rgba(0, 0, 0, 0.7) !important;
}

.shape {
	background: radial-gradient(circle, #e8f8f0) !important;
	opacity: 0.8 !important;
}

.shape-1,
.shape-2,
.shape-3,
.shape-4 {
	background: linear-gradient(45deg, #81c784, #66bb6a) !important;
	opacity: 0.7 !important;
}

/* ===== MODO OSCURO ===== */
.dark .auth-container {
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%) !important;
}

.dark .auth-card {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.dark .auth-title {
	color: white !important;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.dark .auth-subtitle {
	color: rgba(255, 255, 255, 0.8) !important;
}

.dark .auth-tabs {
	background: rgba(255, 255, 255, 0.1) !important;
}

.dark .tab-button {
	color: rgba(255, 255, 255, 0.7) !important;
}

.dark .tab-button.active {
	background: #00a86b !important;
	color: white !important;
	box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3) !important;
}

.dark .tab-button:hover:not(.active) {
	color: white !important;
	background: rgba(255, 255, 255, 0.1) !important;
}

.dark .form-label {
	color: white !important;
}

.dark .form-input,
.dark .form-select {
	background: rgba(255, 255, 255, 0.08) !important;
	color: white !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
}

.dark .form-input:focus,
.dark .form-select:focus {
	border-color: #00a86b !important;
	background: rgba(255, 255, 255, 0.12) !important;
	box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2) !important;
}

.dark .form-input::placeholder {
	color: rgba(255, 255, 255, 0.6) !important;
}

.dark .password-toggle {
	color: rgba(255, 255, 255, 0.5) !important;
}

.dark .password-toggle:hover {
	color: rgba(255, 255, 255, 0.7) !important;
	background: rgba(255, 255, 255, 0.1) !important;
}

.dark .input-with-prefix {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
}

.dark .input-prefix,
.dark .input-suffix {
	background: rgba(255, 255, 255, 0.1) !important;
	color: rgba(255, 255, 255, 0.8) !important;
}

.dark .switch-text {
	color: rgba(255, 255, 255, 0.8) !important;
}

.dark .shape {
	background: radial-gradient(circle, #00ffae) !important;
	opacity: 0.3 !important;
}

.dark .shape-1,
.dark .shape-2,
.dark .shape-3,
.dark .shape-4 {
	background: linear-gradient(45deg, #00ffae, #00cc8a) !important;
	opacity: 0.4 !important;
}

.dark .submit-button {
	background: linear-gradient(135deg, #00ffae, #00cc8a) !important;
	color: #000000 !important;
	box-shadow: 0 4px 20px rgba(0, 255, 174, 0.3) !important;
}

.dark .submit-button:hover:not(:disabled) {
	background: linear-gradient(135deg, #00e6a0, #00b377) !important;
	box-shadow: 0 8px 25px rgba(0, 255, 174, 0.4) !important;
}

.dark .forgot-link {
	color: #00ffae !important;
}

.dark .forgot-link:hover {
	color: #00e6a0 !important;
}

.dark .switch-link {
	color: #00ffae !important;
}

.dark .switch-link:hover {
	color: #00e6a0 !important;
}

.dark .message-box.error {
	background: rgba(244, 67, 54, 0.2) !important;
	border-color: rgba(244, 67, 54, 0.4) !important;
	color: #ff6b6b !important;
}

.dark .message-box.success {
	background: rgba(76, 175, 80, 0.2) !important;
	border-color: rgba(76, 175, 80, 0.4) !important;
	color: #4caf50 !important;
}

.dark .message-box.warning {
	background: rgba(255, 152, 0, 0.2) !important;
	border-color: rgba(255, 152, 0, 0.4) !important;
	color: #ffb74d !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile */
@media (max-width: 480px) {
	.auth-container {
		padding: 16px;
		margin-top: 60px; /* Menos espacio en mobile */
	}
	
	.auth-card {
		padding: 24px;
		border-radius: 16px;
	}
	
	.auth-title {
		font-size: 24px;
	}
	
	.form-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	
	.tab-button {
		padding: 10px 12px;
		font-size: 13px;
	}
	
	/* Ajustes para las elipses en mobile - Same as About Us */
	.shape {
		width: 300px;
		height: 300px;
		filter: blur(80px);
	}
	
	.shape-1 {
		width: 300px;
		height: 300px;
		bottom: -100px;
		left: -100px;
	}
	
	.shape-2 {
		width: 300px;
		height: 300px;
		top: -60px;
		right: -60px;
	}
	
	.shape-3,
	.shape-4 {
		display: none;
	}
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
	.auth-container {
		margin-top: 70px; /* Espacio intermedio en tablet */
	}
	
	.auth-card {
		padding: 32px;
	}
	
	.form-row {
		gap: 12px;
	}
	
	/* Ajustes para las elipses en tablet */
	.shape {
		width: 400px;
		height: 400px;
		filter: blur(100px);
	}
	
	.shape-1 {
		width: 400px;
		height: 400px;
		bottom: -150px;
		left: -150px;
	}
	
	.shape-2 {
		width: 400px;
		height: 400px;
		top: -80px;
		right: -80px;
	}
}

/* Desktop */
@media (min-width: 769px) {
	.auth-container {
		margin-top: 80px; /* Espacio completo en desktop */
	}
	
	.auth-content {
		max-width: 520px;
	}
	
	.auth-card {
		padding: 48px;
	}
	
	.auth-title {
		font-size: 32px;
	}
	
	.auth-subtitle {
		font-size: 18px;
	}
}

/* Large Desktop */
@media (min-width: 1200px) {
	.auth-content {
		max-width: 560px;
	}
	
	.auth-card {
		padding: 56px;
	}
	
	.shape-1 {
		width: 516px;
		height: 516px;
	}
	
	.shape-2 {
		width: 516px;
		height: 516px;
	}
	
	.shape-3 {
		width: 300px;
		height: 300px;
	}
	
	.shape-4 {
		width: 400px;
		height: 400px;
	}
} 