/* Reset và Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Utility class */
.hidden {
  display: none;
}

/* Register Page Styles */

/* Main container */
.register-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Background */
.register-background {
  position: absolute;
  inset: 0;
}

.register-background-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


.register-background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(40, 40, 40, 0.55),
    rgba(146, 132, 10, 0.35),
    rgba(167, 139, 250, 0.35)
  );
  backdrop-filter: blur(6px) brightness(0.85);
}

/* Content wrapper */
.register-content {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}

/* Left branding section */
.register-branding {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding-left: 3rem;
  padding-right: 3rem;
}

@media (min-width: 1024px) {
  .register-branding {
    display: flex;
    width: 50%;
  }
}

@media (min-width: 1280px) {
  .register-branding {
    padding-left: 16rem;
    padding-right: 5rem;
  }
}

.register-branding-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.register-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

@media (min-width: 1280px) {
  .register-title {
    font-size: 3.75rem;
  }
}

.register-title-accent {
  color: rgba(255, 255, 255, 0.9);
}

.register-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
  line-height: 1.625;
}

/* Feature badges */
.register-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
}

.register-badge {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* Food images showcase */
.register-food-images {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
}

.register-food-image-wrapper {
  width: 8rem;
  height: 8rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.register-food-image-wrapper:nth-child(1) {
  transform: rotate(3deg);
}

.register-food-image-wrapper:nth-child(2) {
  transform: rotate(-2deg);
}

.register-food-image-wrapper:nth-child(3) {
  transform: rotate(6deg);
}

.register-food-image-wrapper:hover {
  transform: rotate(0deg);
}

.register-food-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form section */
.register-form-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .register-form-section {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .register-form-section {
    width: 50%;
  }
}

/* Mobile logo */
.register-mobile-logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 20;
}

@media (min-width: 1024px) {
  .register-mobile-logo {
    display: none;
  }
}

.register-mobile-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* Form card */
.form-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) brightness(1.08);
  padding: 2rem;
}

.form-header {
  text-align: center;
  padding-bottom: 1rem;
}

.form-icon-wrapper {
  margin: 0 auto 1rem;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.form-icon {
  height: 1.75rem;
  width: 1.75rem;
  color: white;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Form fields */
.form-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.form-input-wrapper {
  position: relative;
}

.form-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  height: 1rem;
  width: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  color: white;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
  border-color: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.form-input-password {
  padding-right: 2.5rem;
}

.form-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-password-toggle:hover {
  color: white;
}

/* Submit button */
.form-submit-button {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.form-submit-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Login link */
.form-login-text {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.form-login-link {
  font-weight: 500;
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.form-login-link:hover {
  color: rgba(255, 255, 255, 0.8);
}


