/* ============================================================
   HYOANDROPS — Auth Pages (Login & Register)
   Matching Landing Page Design
   ============================================================ */

/* Body */
.auth-page {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Background */
.auth-background {
  position: fixed;
  inset: 0;
  background-image: url('/images/hero/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.auth-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.85) 50%, 
    rgba(255, 255, 255, 0.95) 100%
  );
}

/* Container */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left Side - Branding */
.auth-branding {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.01em;
  width: fit-content;
}

.auth-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(14, 116, 144, 0.35));
  transition: transform 0.3s ease;
}

.auth-logo:hover .auth-logo-img {
  transform: scale(1.08) rotate(-3deg);
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0ea5e9, #0e7490);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
}

.auth-welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-welcome-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Features */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.auth-feature-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateX(8px);
}

.auth-feature-item i {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0ea5e9, #0e7490);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.auth-feature-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

/* Right Side - Form */
.auth-form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.auth-card-header {
  margin-bottom: 32px;
  text-align: center;
}

.auth-card-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.auth-card-header p {
  font-size: 0.95rem;
  color: #64748b;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.form-group label i {
  font-size: 0.85rem;
  color: #0ea5e9;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-input.is-invalid {
  border-color: #ef4444;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #ef4444;
  margin-top: -6px;
}

.form-error i {
  font-size: 0.75rem;
}

/* Form Options (Remember Me & Forgot Password) */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0ea5e9;
  cursor: pointer;
}

.forgot-link {
  font-size: 0.9rem;
  color: #0ea5e9;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #0e7490;
  text-decoration: underline;
}

/* Submit Button */
.btn-auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0ea5e9, #0e7490);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  margin-top: 8px;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.4);
}

.btn-auth-primary i {
  transition: transform 0.3s ease;
}

.btn-auth-primary:hover i {
  transform: translateX(4px);
}

/* Social Auth & Google Button */
.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background-color: #ffffff;
  color: #1e293b;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.btn-google-auth:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.btn-google-auth:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.btn-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 14px;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.auth-footer p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.auth-footer a {
  color: #0ea5e9;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #0e7490;
  text-decoration: underline;
}

/* Alerts */
.auth-alert-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 12px;
  color: #166534;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.auth-alert-success i {
  font-size: 1.2rem;
  color: #16a34a;
  flex-shrink: 0;
}

.auth-alert-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  color: #991b1b;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.auth-alert-error i {
  font-size: 1.2rem;
  color: #dc2626;
  flex-shrink: 0;
}

/* Back to Home Link */
.back-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-home-link:hover {
  color: #0ea5e9;
  transform: translateX(-4px);
}

.back-home-link i {
  transition: transform 0.3s ease;
}

.back-home-link:hover i {
  transform: translateX(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 600px;
  }

  .auth-branding {
    text-align: center;
    align-items: center;
  }

  .auth-logo {
    margin: 0 auto;
  }

  .auth-welcome-title {
    font-size: 2.2rem;
  }

  .auth-features {
    max-width: 400px;
    margin: 16px auto 0;
  }

  .auth-feature-item:hover {
    transform: translateY(-4px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .auth-page {
    padding: 24px 16px;
  }

  .auth-container {
    gap: 32px;
  }

  .auth-welcome-title {
    font-size: 1.8rem;
  }

  .auth-welcome-subtitle {
    font-size: 1rem;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .auth-card-header h2 {
    font-size: 1.5rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .auth-features {
    gap: 16px;
  }

  .auth-feature-item {
    padding: 14px 16px;
  }

  .auth-feature-item i {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .auth-feature-item span {
    font-size: 0.88rem;
  }
}
