@import url('../../styles/giza.css');

body {
	overflow: hidden;
}

/*=========================================================
=                 BACKGROUND GENERAL                       =
=========================================================*/

.background {
	position: fixed;

	inset: 0;

	overflow: hidden;

	z-index: -100;
}

/*=========================================================
=                IMAGEN DE FONDO                           =
=========================================================*/

.background-image {
	position: absolute;

	inset: 0;

	background-image: url('../../assets/images/login-background.jpg');

	background-size: cover;

	background-position: center;

	background-repeat: no-repeat;

	transform: scale(1.12);

	filter: blur(7px);
}

/*=========================================================
=                  OVERLAY OSCURO                          =
=========================================================*/

.background-overlay {
	position: absolute;

	inset: 0;

	background:
		radial-gradient(
			circle at top,

			rgba(37, 85, 166, 0.15),
			rgba(5, 7, 11, 0.88)
		),
		linear-gradient(135deg, rgba(5, 7, 11, 0.35), rgba(5, 7, 11, 0.82));
}

/*=========================================================
=                  MARCA DE AGUA                           =
=========================================================*/

.background-watermark {
	position: absolute;

	inset: 0;

	background-image: url('../../assets/logos/logo_GIZA_RGB-scaled.png');

	background-repeat: no-repeat;

	background-position: center;

	background-size: 55%;

	opacity: 0.035;

	filter: blur(2px);

	animation: watermarkFloat 14s ease-in-out infinite;
}

/*=========================================================
=                  PARTICLES LAYER                         =
=========================================================*/

.background-particles {
	position: absolute;

	inset: 0;

	pointer-events: none;
}

/*=========================================================
=                    SPLASH SCREEN                         =
=========================================================*/

.splash-screen {
	z-index: 200;

	transition: all 0.8s ease;
}

/*=========================================================
=                  SPLASH CONTENT                          =
=========================================================*/

.splash-content {
	display: flex;

	flex-direction: column;

	justify-content: center;

	align-items: center;

	text-align: center;
}

/*=========================================================
=                    LOGO PRINCIPAL                        =
=========================================================*/

.splash-logo {
	width: 520px;

	max-width: 80vw;

	margin-bottom: 50px;

	user-select: none;

	pointer-events: none;

	animation: logoFade 1.4s ease;
}

/*=========================================================
=                   TITULO PRINCIPAL                       =
=========================================================*/

.splash-title {
	font-size: 3rem;

	font-weight: 800;

	letter-spacing: 8px;

	text-transform: uppercase;

	margin-bottom: 15px;

	animation: fadeUp 1.8s ease;
}

/*=========================================================
=                    SUBTITULO                             =
=========================================================*/

.splash-subtitle {
	font-size: 1rem;

	font-weight: 300;

	letter-spacing: 5px;

	text-transform: uppercase;

	color: rgba(255, 255, 255, 0.75);

	margin-bottom: 55px;

	animation: fadeUp 2.2s ease;
}

/*=========================================================
=                  BOTON ENTRAR                            =
=========================================================*/

.enter-button {
	padding: 18px 54px;
}

/*=========================================================
=                  SPLASH HIDDEN                           =
=========================================================*/

.splash-screen.hide {
	opacity: 0;

	visibility: hidden;

	transform: scale(1.05);
}

/*=========================================================
=                    LOGIN SCREEN                          =
=========================================================*/

.login-screen {
	opacity: 0;

	visibility: hidden;

	transition:
		opacity 0.6s ease,
		visibility 0.6s ease,
		transform 0.6s ease;

	z-index: 150;
}

.login-screen.show {
	opacity: 1;

	visibility: visible;
}

/*=========================================================
=                     LOGIN CARD                           =
=========================================================*/

.login-card {
	width: min(1180px, 90vw);

	height: min(720px, 86vh);

	display: flex;

	transform: translateY(40px) scale(0.95);

	transition:
		transform 0.6s ease,
		opacity 0.6s ease;
}

.login-screen.show .login-card {
	transform: translateY(0) scale(1);
}

/*=========================================================
=                  PANEL VISUAL                            =
=========================================================*/

.login-visual {
	position: relative;

	flex: 1.15;

	overflow: hidden;

	background-image: url('../../assets/images/login-background.jpg');

	background-size: cover;

	background-position: center;
}

/*=========================================================
=                 OVERLAY PANEL IZQUIERDO                  =
=========================================================*/

.visual-overlay {
	position: absolute;

	inset: 0;

	background: linear-gradient(
		135deg,
		rgba(8, 13, 20, 0.3),
		rgba(8, 13, 20, 0.82)
	);
}

/*=========================================================
=                 CONTENIDO VISUAL                         =
=========================================================*/

.visual-content {
	position: relative;

	z-index: 2;

	height: 100%;

	padding: 70px;

	display: flex;

	flex-direction: column;

	justify-content: flex-end;
}

/*=========================================================
=                     LOGO VISUAL                          =
=========================================================*/

.visual-logo {
	width: 260px;

	margin-bottom: 40px;
}

/*=========================================================
=                     TITULO VISUAL                        =
=========================================================*/

.visual-content h2 {
	font-size: 2.5rem;

	font-weight: 700;

	line-height: 1.2;

	margin-bottom: 25px;
}

/*=========================================================
=                  DESCRIPCION VISUAL                      =
=========================================================*/

.visual-content p {
	max-width: 420px;

	font-size: 1rem;

	line-height: 1.9;

	color: rgba(255, 255, 255, 0.82);
}

/*=========================================================
=                    PANEL LOGIN                           =
=========================================================*/

.login-panel {
	flex: 0.85;

	display: flex;

	flex-direction: column;

	justify-content: center;

	padding: 70px;

}

/*=========================================================
=                    LOGO DASHBOARD                        =
=========================================================*/

.dashboard-logo {
	width: 230px;

	margin-bottom: 40px;
}

/*=========================================================
=                    TITULO LOGIN                          =
=========================================================*/

.login-title {
	font-size: 2.3rem;

	font-weight: 700;

	margin-bottom: 15px;
}

/*=========================================================
=                  DESCRIPCION LOGIN                       =
=========================================================*/

.login-description {
	margin-bottom: 45px;

	color: rgba(255, 255, 255, 0.7);

	line-height: 1.8;
}

/*=========================================================
=                    BOTON LOGIN                           =
=========================================================*/

.login-button {
	height: 60px;

	margin-top: 15px;
}

.login-button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.login-error {
	margin: 14px 0 0;
	color: #ffb4b4;
	font-size: 0.9rem;
	line-height: 1.45;
}

.login-error[hidden] {
	display: none;
}

.password-field {
	position: relative;
	width: 100%;
}

.input-group .password-field input {
	width: 100%;
	padding-right: 64px;
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transform: translateY(-50%);
}

.password-toggle:hover {
	background: rgba(47, 168, 255, 0.12);
	color: #ffffff;
}

.password-toggle:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.password-toggle-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.password-toggle-icon-hide,
.password-toggle[aria-pressed="true"] .password-toggle-icon-show {
	display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-icon-hide {
	display: block;
}

/*=========================================================
=                  FOOTER LOGIN                            =
=========================================================*/

.login-footer {
	margin-top: 50px;

	display: flex;

	justify-content: space-between;

	align-items: center;

	font-size: 0.82rem;

	color: rgba(255, 255, 255, 0.45);
}
/*=========================================================
=                  GENERIC TRANSITIONS                     =
=========================================================*/

.recovery-link {
	color: #8fd3df;
	font-size: 0.88rem;
	font-weight: 600;
	text-align: center;
}

.recovery-link:focus-visible {
	outline: 3px solid #1d98b0;
	outline-offset: 3px;
}

button,
input,
.login-card,
.login-screen,
.loading-screen,
.splash-screen {
	transition: all 0.35s ease;
}

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

@media (max-width: 1200px) {
	.login-card {
		width: 94vw;
	}
}

@media (max-width: 992px) {
	.login-card {
		flex-direction: column;

		height: auto;

		max-height: 92vh;

		overflow-y: auto;
	}

	.login-visual {
		min-height: 300px;
	}

	.login-panel {
		padding: 50px;
	}
}

@media (max-width: 768px) {
	.splash-logo {
		width: 340px;
	}

	.splash-title {
		font-size: 2.2rem;

		letter-spacing: 5px;
	}

	.visual-content {
		padding: 40px;
	}

	.login-panel {
		padding: 40px 30px;
	}

	.dashboard-logo {
		width: 180px;
	}
}

@media (max-width: 576px) {
	.splash-logo {
		width: 260px;
	}

	.splash-title {
		font-size: 1.7rem;

		letter-spacing: 3px;
	}

	.splash-subtitle {
		font-size: 0.82rem;

		letter-spacing: 2px;
	}

	.enter-button {
		width: 100%;
	}

	.login-panel {
		padding: 30px 22px;
	}

	.login-title {
		font-size: 1.8rem;
	}

	.visual-content h2 {
		font-size: 1.9rem;
	}

	.visual-content {
		padding: 30px;
	}
}

/*=========================================================
=                     END OF FILE                          =
=========================================================*/
