* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 400px;
  width: 100%;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 150px;
  height: auto;
}

h1 {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #999;
  margin-bottom: 30px;
  font-size: 16px;
}

.tabs span {
  padding-bottom: 10px;
  cursor: pointer;
  color: #777;
}

.tabs .active {
  color: black;
  font-weight: bold;
  border-bottom: 3px solid black;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid black;
  outline: none;
  font-size: 16px;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 10px 35px 10px 10px; /* right padding to avoid icon overlap */
  border: none;
  border-bottom: 1px solid black;
  outline: none;
  font-size: 16px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}


.forgot {
  font-size: 14px;
  margin-bottom: 25px;
  color: #0066cc;
  text-decoration: none;
}

.login-btn {
  background: black;
  color: rgb(212, 123, 143);
  width: 100%;
  height: 45px;
  font-size: 16px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.captcha-text {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
}

.captcha-text a {
  color: #0066cc;
  text-decoration: none;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.back-home {
  font-size: 14px;
  color: #0066cc;
  text-decoration: none;
}

@media (max-width: 768px) {
  body {
    padding: 30px 15px;
  }

  .container {
    max-width: 90%;
  }

  h1 {
    font-size: 24px;
  }

  .tabs {
    font-size: 14px;
  }

  .login-btn {
    font-size: 15px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 22px;
  }

  .tabs {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .captcha-text {
    font-size: 12px;
  }

  .back-home {
    font-size: 13px;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
