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

body {
  font-family: "Arial", sans-serif;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-container {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 70px);
  justify-content: center;
}

.login-form {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 20px;
}

.login-form .form-wrapper {
  max-width: 400px;
  width: 100%;
}

.login-form h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.login-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-form input:focus {
  border-color: #6a5acd;
  box-shadow: 0 0 10px rgba(106, 90, 205, 0.3);
}

.login-form button {
  width: 100%;
  padding: 15px;
  background-color: #6a5acd;
  border: none;
  color: white;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #5a4fbf;
}

.login-form .form-links {
  text-align: center;
  margin-top: 20px;
}

.login-form .form-links a {
  color: #6a5acd;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.login-form .form-links a:hover {
  color: #483d8b;
}

.graphic-side {
  width: 50%;
  position: relative;
  background: linear-gradient(
    135deg,
    #ff9a9e,
    #fad0c4,
    #fad0c4,
    #a1c4fd,
    #c2e9fb
  );
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1000px;
}

.wave-animation {
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(270deg, #fbc2eb, #a6c1ee, #fbc2eb, #a6c1ee);
  background-size: 400% 400%;
  animation: gradientWave 10s ease infinite;
  clip-path: polygon(100% 0, 100% 100%, 50% 100%, 0 100%, 0 50%, 50% 0);
  z-index: 1;
  filter: blur(30px);
}

@keyframes gradientWave {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.graphic-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 20px 40px;
  transform-style: preserve-3d;
  transform: translateZ(50px);
  animation: fadeIn 1.5s ease;
}

.graphic-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  animation: slideInLeft 1s ease;
}

.graphic-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  animation: slideInRight 1s ease;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .graphic-side {
    display: none;
  }

  .login-container {
    background-color: #fff;
    flex-direction: column;
  }

  .login-form {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .beta-label {
    display: none;
  }
}

.error-message {
    display: none;
    color: #ca5957;
    background-color: #f2dede;
    margin-top: 15px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ebccd1;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.error-message.show {
    display: block;
}

.error-message.hide {
    display: none;
}

.error {
  display: none;
  padding: 10px 12px;
  margin-top: -10px;
  background-color: #ffe6e6;
  border-left: 4px solid #ff4d4d;
  color: #a94442;
  font-size: 14px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.error:not(:empty) {
  display: block;
}

.error {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.error:not(:empty) {
  opacity: 1;
  height: auto;
  margin-bottom: 20px;
}

#passwordStrength {
  height: 6px;
  width: 100%;
  background-color: #ddd;
  border-radius: 3px;
  margin-top: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

#passwordStrength::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background-color: red;
  transition: width 0.3s ease, background-color 0.3s ease;
}

#passwordStrength.weak::after {
  width: 33%;
  background-color: #ff4d4d;
}

#passwordStrength.medium::after {
  width: 66%;
  background-color: #ffcc00;
}

#passwordStrength.strong::after {
  width: 100%;
  background-color: #4CAF50;
}

.eye-icon {
  transform: translateY(-100%);
}

.form-check {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 12px 0;
}

.form-check input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  height: 20px;
  width: 20px;
  z-index: 2;
  margin: 0;
}

.form-check label.checkbox-label {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
  margin-bottom: 20px;
}

.form-check label.checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: background-color 0.3s, border-color 0.3s;
}

.form-check label.checkbox-label::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 10"><path fill="none" stroke="%23ffffff" stroke-width="2" d="M1 5l3 3L11 1"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.form-check input[type="checkbox"]:checked + label.checkbox-label::before {
  background-color: #6a5acd;
  border-color: #6a5acd;
}

.form-check input[type="checkbox"]:checked + label.checkbox-label::after {
  opacity: 1;
}

.form-check label.checkbox-label:hover::before {
  border-color: #6a5acd;
}

.form-check input[type="checkbox"]:focus + label.checkbox-label::before {
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.3);
}

.form-check label.checkbox-label a {
  color: #6a5acd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-check label.checkbox-label a:hover {
  color: #483d8b;
}

.form-check .error {
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .graphic-side {
    display: none;
  }

  .login-container {
    background-color: #fff;
    flex-direction: column;
  }

  .login-form {
    width: 100%;
    padding: 20px;
  }
}

.form-links {
  text-align: center;
  margin-top: 16px;
}

.form-links a {
  color: #4CAF50;
  text-decoration: none;
  font-size: 14px;
}

.form-links a:hover {
  text-decoration: underline;
}

.success-message {
  display: none;
  color: #3c763d;
  background-color: #dff0d8;
  margin-top: 15px;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #d6e9c6;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
}

.success-message.show {
  display: block;
}

.success-message.hide {
  display: none;
}

.success {
  display: none;
  padding: 10px 12px;
  margin-top: -10px;
  background-color: #e6ffe6;
  border-left: 4px solid #5cb85c;
  color: #3c763d;
  font-size: 14px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.success:not(:empty) {
  display: block;
}

.success {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.success:not(:empty) {
  opacity: 1;
  height: auto;
  margin-bottom: 20px;
}

.beta-label {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
}

.beta-badge {
  display: inline-block;
  background-color: #6a5acd;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.beta-badge:hover {
  background-color: #5a4fbf;
}

.code-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  cursor: text;
  outline: none;
  position: relative;
}

.code-slot {
  width: 40px;
  height: 55px;
  border-bottom: 3px solid #ccc;
  font-size: 32px;
  text-align: center;
  position: relative;
}

.code-slot span {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: bold;
  color: #333;
}

#emailCodeForm > p {
  text-align: center;
}

#realCodeInput {
  position:fixed; 
  opacity:0; 
  pointer-events:none;
}

#resendCode.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.app-version {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size: 0.85rem;
  color: var(--subtext-color);
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
}