:root {
  --primary: #524af1;
  --primary-hover: #3d38d0;
  --danger: #e11d48;
  --bg: #f9f9f9;
  --white: #fff;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.code-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.code-inputs input {
  width: 40px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
  color: #111827;
}

.code-inputs input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}
.auth-container {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.auth-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(0, 4, 255, 0.3);
}

.input-error {
  font-size: 14px;
  color: var(--danger);
  margin-top: 6px;
  
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #3e36dd;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--text-gray);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: var(--primary-hover);
  transform: translateX(-2px);
}

.back-button svg {
  width: 20px;
  height: 20px;
}

.google-auth {
  margin-top: 20px;
  text-align: center;
}

.text {
  margin-top: 10px;
  margin-bottom: -10px;
  font-size: small;
  text-align: center;
  opacity: 0.7;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #444;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.google-btn:hover {
  background-color: #f1f1f1;
}

.google-btn img {
  width: 20px;
  height: 20px;
}



@media (max-width: 768px) {
  body {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .auth-container {
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
  }

  .back-button {
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 30px 20px;
    max-width: 100%;
    margin: 0 15px;
  }

  .auth-title {
    font-size: 22px;
  }
}
