/* ========================================
   FONTE PERSONALIZADA
   ======================================== */
@font-face {
  font-family: 'BlackOpsOne';
  src: url("../fonts/BlackOpsOne.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ========================================
   LAYOUT PRINCIPAL - GRID DE 3 COLUNAS
   ======================================== */
body {
  margin: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  overflow: hidden;
  resize: none;
}

/* Containers das três áreas principais */
.background-one,
.background-two,
.background-three {
  background-color: #151515;
  position: relative;
}



/* ========================================
   ESTILOS BASE PARA TODAS AS ÁREAS
   ======================================== */
.link-one, .link-two, .link-three {
  color: transparent;
  transition: color 0.2s ease 0.6s;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  font-family: 'BlackOpsOne', sans-serif;
  font-size: 6em;
  text-shadow: 0 0 10px #000000;
  overflow: hidden;
}

/* Estilos base para imagens de fundo */
.link-one-img, .link-two-img, .link-three-img {
  position: absolute;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Estilos base para textos das áreas */
.link-one-text, .link-two-text, .link-three-text {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease 0.6s;
  mix-blend-mode: destination-out;
}

/* ========================================
   ÁREA 1 - LOGO BIFROST+ (ANIMAÇÃO CIRCULAR)
   ======================================== */
.link-one-img {
  top: 50%;
  left: 50%;
  width: 50%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  z-index: -1;
}

.link-one-text {
  color: #6cbaf3;
}

.plus-text {
  color: white;
}

.link-one:hover .link-one-text {
  opacity: 1;
  transition: opacity 0.2s ease 0.6s;
}

.link-one:not(:hover) .link-one-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-one::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background-color: #6cbaf3;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.link-one:hover::before {
  clip-path: circle(100% at 50% 50%);
  transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ========================================
   ÁREA 2 - PLAYERS (ANIMAÇÃO POLIGONAL)
   ======================================== */
/* Specific styles for link-two */
.link-two-img {
  width: 100%;
  height: 100%;
}

.link-two-text {
  color: #6b8e23;
}

.link-two:hover .link-two-text {
  opacity: 1;
  transition: opacity 0.2s ease 0.6s;
}

.link-two::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  clip-path: polygon(
    0% -20%,
    100% -30%,
    100% -10%,
    0% 0%,
    0% 130%,
    100% 120%,
    100% 100%,
    0% 110%
  );
  background-color: #6b8e23;
  transition: clip-path 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.link-two:hover::before {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 40%,
    0% 60%,
    0% 100%,
    100% 100%,
    100% 40%,
    0% 60%
  );
  transition: clip-path 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.link-two:not(:hover) .link-two-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-two:not(:hover)::before {
  transition: clip-path 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

/* ========================================
   ÁREA 3 - PARTNERS (ANIMAÇÃO DE CORTINA)
   ======================================== */
/* Specific styles for link-three */
.link-three-img {
  width: 100%;
  height: 100%;
}

.link-three-text {
  color: #D2B48C;
}

.link-three:hover .link-three-text {
  opacity: 1;
  transition: opacity 0.2s ease 0.6s;
}

.link-three::before {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #D2B48C;
  transition: bottom 0.6s ease 0.2s;
  z-index: 1;
}

.link-three::after {
  content: "";
  position: absolute;
  top: -100%;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #D2B48C;
  transition: top 0.6s ease 0.2s;
  z-index: 1;
}

.link-three:hover::before {
  bottom: 0;
  transition: bottom 0.6s ease;
}

.link-three:hover::after {
  top: 0;
  transition: top 0.6s ease;
}

.link-three:not(:hover)::before {
  bottom: -100%;
  transition: bottom 0.6s ease 0.2s;
}

.link-three:not(:hover)::after {
  top: -100%;
  transition: top 0.6s ease 0.2s;
}

.link-three:not(:hover) .link-three-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ========================================
   BARRAS DIVISÓRIAS ENTRE AS ÁREAS
   ======================================== */
/* --- BORDAS DIVISÓRIAS --- */
.background-one::after,
.background-two::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background-color: #2f2f2f;
  box-shadow: -1px 0 1px 1px rgba(0, 0, 0, 0.7);
  z-index: 4;
}

.background-two::before,
.background-three::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background-color: #2f2f2f;
  box-shadow: 1px 0 1px 1px rgba(0, 0, 0, 0.7);
  z-index: 4;
}

/* ========================================
   PAINEL DE LOGIN MODAL
   ======================================== */
/* Painel de Login Moderno com Imagem de Fundo Rainbow */
.login-panel {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px); /* suporte Safari */
}
.login-content-outer {
	background: rgba(0,0,0,0.6);
	background-image: url('../images/login_fundo.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center calc(50% - 1.5px);
	border-radius: 50px;
	padding: 1.2rem 1.2rem 1.2rem 1.2rem;
	box-shadow: 0 8px 32px rgba(0,0,0,0.28);
	width: 307px;
	height: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	overflow: hidden;
}
.login-title {
	margin-bottom: 1.5rem;
	text-align: center;
	font-family: 'BlackOpsOne', Arial, sans-serif !important;
	font-size: 2.3rem;
	font-weight: 700;
	color: #fff;
	text-shadow: none;
	letter-spacing: 1px;
}
h2.login-title {
	font-family: 'BlackOpsOne', Arial, sans-serif !important;
	font-weight: normal !important;
}
.input-group {
	margin-bottom: 1.1rem;
	width: 100%;
}
.input-group input {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 2px solid #444;
	border-radius: 14px;
	font-size: 1.1rem;
	background: #232323;
	color: #fff;
	outline: none;
	transition: border 0.2s;
	box-sizing: border-box;
}
.input-group input:focus {
	border: 2px solid #00cfff !important;
}
.input-group input:invalid,
.input-group input:focus:invalid {
	border-color: #444 !important;
	box-shadow: none !important;
}
.checkbox-group {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 1.2rem;
	gap: 1.2rem;
}
.checkbox-group label {
	font-size: 1rem;
	color: #eee;
	user-select: none;
}
.checkbox-group input[type="checkbox"] {
	accent-color: #00cfff;
	margin-right: 0.3em;
}
#login-submit {
	width: 100%;
	padding: 0.95rem;
	background: #2176ff;
	color: #fff;
	font-weight: bold;
	border: none;
	border-radius: 14px;
	font-size: 1.25rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: background 0.2s, box-shadow 0.2s;
	margin-bottom: 0.7rem;
	letter-spacing: 1px;
	margin-top: 15px;
}
#login-submit:hover {
	background: #0056d6;
}
.login-links {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: auto;
	font-size: 1.05rem;
	gap: 2.5rem;
	padding: 0 0.2rem 0.1rem 0.2rem;
	box-sizing: border-box;
	margin-bottom: 3px;
}
.login-links a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.2s;
}
.login-links a:hover {
	color: #00cfff;
	text-decoration: none;
}
.input-group input::placeholder {
	text-align: center;
}

.login-link {
	color: #ccc;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.2s;
	outline: none;
	user-select: none;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
}
.login-link:hover, .login-link:focus {
	color: #00cfff;
	text-decoration: none;
}
.login-link:active {
	color: #2176ff;
}

#resolution-warning {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,1);
	z-index: 2000;
	color: #fff;
	font-family: 'BlackOpsOne', Arial, sans-serif;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
}

/* ========================================
   PAINEL DE REGISTRO MODAL
   ======================================== */
.register-panel {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.register-content-outer {
	background: rgba(0,0,0,0.6);
	background-image: url('../images/registro_fundo.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center calc(50% - 1px);
	border-radius: 50px;
	padding: 1.2rem 1.2rem 1.2rem 1.2rem;
	box-shadow: 0 8px 32px rgba(0,0,0,0.28);
	width: 800px;
	height: 486px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	overflow: hidden;
}

.register-title {
	margin-bottom: 1rem;
	text-align: center;
	font-family: 'BlackOpsOne', Arial, sans-serif !important;
	font-size: 1.8rem;
	font-weight: 700;
	color: #fff;
	text-shadow: none;
	letter-spacing: 1px;
}

h2.register-title {
	font-family: 'BlackOpsOne', Arial, sans-serif !important;
	font-weight: normal !important;
}

/* ========================================
   FORMULÁRIO DE REGISTRO
   ======================================== */
#register-form {
	width: 100%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
}

/* Layout de duas colunas */
.form-row {
	display: flex;
	gap: 1rem;
}

.form-row .input-group {
	flex: 1;
	margin-bottom: 1.1rem;
}

/* Campos menores para senhas (soma igual ao email) */
.input-group.small {
	flex: 0.5;
}

/* Espaçamento entre grupos */
.form-row + .form-row {
	margin-top: 0.5rem;
}

/* Placeholder centralizado para registro */
#register-form .input-group input::placeholder {
	text-align: center;
}

/* Foco para registro - regra específica */
#register-form input:focus {
	border: 2px solid #00cfff !important;
	background: #232323 !important;
}

/* Foco para login - regra específica */
.login-panel .input-group input:focus {
	border: 2px solid #00cfff !important;
}





.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
	justify-content: space-between;
	width: 100%;
}

.register-btn, .cancel-btn {
	width: 100%;
	padding: 0.95rem;
	background: #2176ff;
	color: #fff;
	font-weight: bold;
	border: none;
	border-radius: 14px;
	font-size: 1.25rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: background 0.2s, box-shadow 0.2s;
	letter-spacing: 1px;
	flex: 0;
}

.register-btn:hover {
	background: #0056d6;
}

.cancel-btn {
	background: #444;
}

.cancel-btn:hover {
	background: #555;
}


