/* Auth-specific styling */
.auth-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  background: none;
  box-shadow: none;
}

.auth-form input[type="text"],
.auth-form input[type="username"],
.auth-form input[type="password"] {
  margin-bottom: 16px;
  width: 100%;
}

.auth-form input[type="submit"] {
  margin-bottom: 24px;
}

form {
  max-width: 600px;
  margin: 0 auto 32px;
  padding: 24px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

form * {
  margin-bottom: 16px;
}

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

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form textarea,
form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 16px;
  transition: var(--transition);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(55, 120, 194, 0.2);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}

form input[type="submit"],
form button[type="submit"] {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

form input[type="submit"]:hover,
form button[type="submit"]:hover {
  background-color: var(--primary-hover);
}

form button[type="button"] {
  display: block;
  width: auto;
  margin: 16px auto;
  background-color: var(--background-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

form button[type="button"]:hover {
  background-color: rgba(55, 120, 194, 0.1);
}

/* Link fields styling */
form .link-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

form .link-item input {
  margin-bottom: 0;
}

/* Price fields styling */
form #rough_price,
form #currency {
  display: inline-block;
}

form #rough_price {
  width: 65%;
  margin-right: 5%;
}

form #currency {
  width: 30%;
}

@media (max-width: 768px) {
  form {
    padding: 16px;
  }

  form input[type="text"],
  form input[type="password"],
  form input[type="email"],
  form input[type="number"],
  form textarea,
  form select {
    padding: 10px 14px;
  }

  form .link-item {
    flex-direction: column;
    gap: 8px;
  }

  form .link-item input {
    width: 100%;
  }
}

.register-link {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-light);
}

.register-link a.button {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 8px;
  border: 1px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.register-link a.button:hover {
  background-color: var(--primary-color);
  color: white;
}

.separator {
  text-align: center;
  margin: 16px 0;
  position: relative;
  color: #777;
}

.separator::before,
.separator::after {
  content: "";
  display: inline-block;
  width: 40%;
  height: 1px;
  background-color: #ddd;
  position: absolute;
  top: 50%;
}

.separator::before {
  left: 0;
}

.separator::after {
  right: 0;
}

.google-container {
  background: none;
  box-shadow: none;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.google-container form {
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background-color: #4285f4; /* Google blue */
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  height: 42px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
}

.google-button:hover {
  box-shadow: 0 0 3px 3px rgba(66, 133, 244, 0.3);
}

.google-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px 0 0 2px;
}

.google-button img {
  position: absolute;
  left: 11px;
  height: 18px;
  width: 18px;
  z-index: 1;
}

.google-button span {
  margin-left: 16px;
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.21px;
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .google-button {
    background-color: #4285f4; /* Keep Google blue in dark mode */
  }

  .google-button:before {
    background-color: #fff;
  }

  .google-button span {
    color: #fff;
  }
}

/* Wish form styling - modernized version */
.wish-form {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 24px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.wish-form form {
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.wish-form h2 {
  margin-bottom: 24px;
  color: var(--primary-color);
  text-align: center;
}

/* Form elements use the general form styles, with these specific overrides */
.wish-form input[type="text"],
.wish-form input[type="number"],
.wish-form textarea,
.wish-form select {
  margin-bottom: 16px;
}

/* Price fields styling */
.wish-form .price-container {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.wish-form .price-container input {
  margin-bottom: 0;
}

.wish-form #rough_price {
  flex: 2;
}

.wish-form #currency {
  flex: 1;
}

/* Link fields styling */
.wish-form .link-item {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: center;
}

.wish-form .link-item input {
  margin-bottom: 0;
}

/* Submit button - using the general form styles */
.wish-form input[type="submit"] {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .wish-form {
    padding: 16px;
  }

  .wish-form .link-item {
    flex-direction: column;
    gap: 8px;
  }

  .wish-form .link-item input {
    width: 100%;
  }
}

/* Image preview styling in wish form */
.wish-form .picture-container {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.wish-form .picture-container input {
  flex: 1;
  margin-bottom: 0;
}

.wish-form .image-preview {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.wish-form .image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
