/* ================= LANGUAGE SELECTOR ================= */
.lang-switch {
  position: absolute;
  top: 12px;
  right: 15px;
  z-index: 10;
}
.lang-switch select {
  padding: 5px 10px;
  border-radius: 18px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-switch select:hover {
  border-color: #ff6b6b;
}

/* ================= BODY & BACKGROUND ================= */
.auth-body {

  background: url('images/background.png') no-repeat center center/cover;
}

/* ================= REGISTRATION CARD ================= */
.auth-container {
  background: rgba(255,255,255,0.95);
  padding: 35px 25px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  overflow-y: auto;
  scroll-behavior: smooth;
  animation: fadeIn 0.6s ease;
}
.auth-container::-webkit-scrollbar {
  width: 6px;
}
.auth-container::-webkit-scrollbar-thumb {
  background: #ff6b6b;
  border-radius: 3px;
}

/* ================= LOGO & TITLES ================= */
.auth-header {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}
.auth-logo {
  font-size: 28px;
  font-weight: bold;
  color: #ff6b6b;
}
.auth-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 14px;
  color: #555;
}

/* ================= FORM COLUMNS ================= */
.auth-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

/* Each column */
.form-column {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================= INPUT GROUPS ================= */
.input-group {
  position: relative;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: #f9f9f9;
  outline: none;
  transition: all 0.25s ease;
}
.input-group input:focus,
.input-group select:focus {
  border-color: #ff6b6b;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,107,107,0.2);
}

/* Floating Labels */
.input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #777;
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 3px;
}
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group select:focus + label,
.input-group select:not([value=""]) + label {
  top: -7px;
  font-size: 11px;
  color: #ff6b6b;
  background: #fff;
  border-radius: 5px;
}

/* Password Toggle */
.password-group {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 0.95rem;
  color: #ff6b6b;
}

/* Avatar Upload */
.input-group.file-upload input[type="file"] {
  display: none;
}
.input-group.file-upload label {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  background: #ff6b6b;
  color: #fff;
  display: inline-block;
  transition: all 0.25s ease;
  font-size: 13px;
  text-align: center;
}
.input-group.file-upload label:hover {
  background: #f06595;
}
.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff6b6b;
  margin-top: 6px;
}
.hidden {
  display: none;
}

/* ================= SUBMIT BUTTON ================= */
button.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #ff6b6b;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
}
button.btn-primary:hover {
  background: #f06595;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

/* ================= AUTH LINK ================= */
.auth-link {
  width: 100%;
  margin-top: 16px;
  font-size: 13px;
  color: #555;
  text-align: center;
}
.auth-link a {
  color: #ff6b6b;
  font-weight: 600;
  text-decoration: none;
}
.auth-link a:hover {
  text-decoration: underline;
}

/* ================= ANIMATION ================= */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .form-column {
    flex: 1 1 100%;
  }
  .auth-container {
    padding: 28px 20px;
  }
  .auth-title {
    font-size: 18px;
  }
  button.btn-primary {
    padding: 12px;
    font-size: 14px;
  }
}
