.auth-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px); /* Adjust for header/footer height */
  background-color: #0e0e0e;
}

.auth-box {
  background: #1a1a1a;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  width: 100%;
  max-width: 420px;
  color: #fff;
}

.auth-toggle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.auth-toggle button {
  flex: 1;
  padding: 0.75rem;
  background: #2c2c2c;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.auth-toggle button.active,
.auth-toggle button:hover {
  background: #d94949;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  background: #2a2a2a;
  color: #fff;
}

.auth-form button {
  padding: 0.75rem;
  background: #d94949;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-form button:hover {
  background: #ff4c94;
}

.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-upload img {
  margin-top: 0.5rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
}

.hidden {
  display: none;
}

/* Brighter placeholder text */
.auth-form input::placeholder {
  color: #ccc; /* Light gray for contrast */
}

.auth-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ff2a7e;
  background: #2e2e2e;
}

.crop-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1280px;
  height: 720px;
  transform: translate(-50%, -50%);
  background-color: #0e0e0e; /* Matches login/register */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.crop-modal img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Preserves full image without cropping */
  border-radius: 0 !important; /* Forcefully removes any rounding */
  display: block;
}

.crop-modal .button-row {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 20px; /* Adds spacing between buttons */
  justify-content: center;
  width: 100%;
}

.crop-modal button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #d94949;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.crop-modal button:hover {
  background-color: #ff4c94;
}

.hidden {
  display: none;
}

.auth-header-text {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

.auth-main-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ff4c94;
  text-shadow: 0 0 8px rgba(255, 76, 148, 0.4);
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
