@font-face {
  font-family: "Euclid Circular B";
  src: url("/assets/eb.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Euclid Circular B";
  src: url("/assets/ebh.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg-dark: #0f0a14;
  --bg-dark-glass: rgba(15, 10, 20, 0.85);
  --primary: #8b5cf6;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --input-bg: #18141c;
  --input-border: #27272a;
  --border-radius: 10px;
  --sidebar-width: 30vw;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Euclid Circular B", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

.split-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100vw;
}

.form-side {
  position: relative;
  width: var(--sidebar-width);
  min-width: 320px;
  height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  z-index: 10;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.logo img {
  width: 145px;
  height: 35px;
  object-fit: contain;
}

.form-content {
  width: 100%;
  max-width: 80%;
}

.auth-step {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.auth-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.input-group {
  margin-bottom: 20px;
}

.turnstile-box {
  margin: 4px 0 20px;
  display: flex;
  justify-content: center;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-box input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.consent-box a {
  color: var(--primary);
  text-decoration: none;
}

.consent-box a:hover {
  text-decoration: underline;
}

label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 14px;
  font-family: inherit;
  background-color: rgba(0, 0, 0, 0.51);
  border: 1px solid rgba(43, 43, 43, 0.51);
  box-sizing: border-box;
  backdrop-filter: blur(150px);
  -webkit-backdrop-filter: blur(150px);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  font-family: inherit;
  background: linear-gradient(to bottom, #262626, #141414);
  color: #ffffff;
  border: 1px solid #444444;

  outline: 0;
  box-sizing: border-box;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: linear-gradient(to bottom, #303030, #1c1c1c);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  font-family: inherit;
  background: linear-gradient(to bottom, #a073ff, #734fbf);
  color: var(--text-primary);
  border: 1px solid rgba(43, 43, 43, 0.51);
  box-sizing: border-box;
  backdrop-filter: blur(150px);
  -webkit-backdrop-filter: blur(150px);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #b38fff, #8762cd);
  color: var(--text-primary);
  border-color: #a073ff;
}

button:target {
  outline: 1px solid #8952ff;
}
.switch-auth {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
}

.switch-auth a {
  color: var(--primary);
  text-decoration: none;
  margin-left: 4px;
}

.switch-auth a:hover {
  text-decoration: underline;
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid var(--input-border);
}

.user-profile p {
  font-size: 18px;
  font-weight: 500;
}

.footer {
  position: absolute;
  bottom: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
  left: 0;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;

  margin: 0 4px;
}

.graphic-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.bg-curves {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .form-side {
    width: 100%;
    min-width: unset;
    padding: 30px;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

.input-error {
  border-color: rgba(239, 68, 68, 0.8) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
  animation: shake 0.4s ease;
}

.error-message {
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  margin-top: -8px;
  display: none;
  text-align: center;
}

.error-message.visible {
  display: block;
}
