/* Authentication Pages Styles */

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.back-home {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: var(--dark-color);
  border-radius: 50px;
  font-weight: 500;
  box-shadow: var(--shadow-small);
  transition: var(--transition-fast);
  z-index: 100;
}

.back-home:hover {
  box-shadow: var(--shadow-medium);
  transform: translateX(-4px);
  color: var(--primary-color);
}

/* ===== AUTH CONTAINER ===== */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ===== LEFT SIDE ===== */
.auth-left {
  background: linear-gradient(135deg, var(--primary-color) 0%, #a0522d 100%);
  color: white;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -150px;
  right: -150px;
}

.auth-left::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.auth-brand img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: white;
  padding: 8px;
}

.auth-brand h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.auth-brand h1 span {
  color: #fef7ed;
}

.auth-content {
  position: relative;
  z-index: 1;
}

.auth-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.auth-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 32px;
  line-height: 1.6;
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  opacity: 0.95;
}

.auth-features i {
  font-size: 1.2rem;
  color: var(--secondary-color);
  background: white;
  padding: 8px;
  border-radius: 8px;
}

/* ===== RIGHT SIDE ===== */
.auth-right {
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-container {
  width: 100%;
  max-width: 450px;
}

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

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--gray-color);
  font-size: 1rem;
}

/* ===== SOCIAL LOGIN ===== */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--primary-color);
  background: #fef7ed;
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

.social-btn.google {
  color: #db4437;
}

.social-btn.facebook {
  color: #4267b2;
}

.social-btn i {
  font-size: 1.2rem;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--gray-color);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== FORM STYLES ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--primary-color);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

.password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-group input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--gray-color);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition-fast);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.toggle-password:hover {
  color: var(--primary-color);
  background: rgba(139, 69, 19, 0.05);
}

.toggle-password:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.strength-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  transition: var(--transition-medium);
}

.password-strength.weak .strength-bar::after {
  width: 33%;
  background: #dc2626;
}

.password-strength.medium .strength-bar::after {
  width: 66%;
  background: #f59e0b;
}

.password-strength.strong .strength-bar::after {
  width: 100%;
  background: var(--secondary-color);
}

.strength-text {
  display: block;
  font-size: 0.85rem;
  margin-top: 4px;
  color: var(--gray-color);
}

.password-strength.weak .strength-text::after {
  content: "Weak password";
  color: #dc2626;
}

.password-strength.medium .strength-text::after {
  content: "Medium password";
  color: #f59e0b;
}

.password-strength.strong .strength-text::after {
  content: "Strong password";
  color: var(--secondary-color);
}

/* ===== FORM ROW ===== */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--gray-color);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-label a {
  color: var(--primary-color);
  font-weight: 500;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.forgot-password {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.forgot-password:hover {
  text-decoration: underline;
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.auth-footer p {
  color: var(--gray-color);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition-fast);
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-left {
    padding: 40px 32px;
  }

  .auth-left::before,
  .auth-left::after {
    display: none;
  }

  .auth-content h2 {
    font-size: 2rem;
  }

  .auth-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .auth-body {
    padding: 20px;
  }

  .auth-right {
    padding: 40px 32px;
  }

  .form-row-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .back-home {
    position: fixed;
    margin-bottom: 20px;
    display: inline-flex;
  }

  .auth-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-left {
    padding: 32px 24px;
  }

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

  .auth-brand h1 {
    font-size: 1.5rem;
  }

  .auth-content h2 {
    font-size: 1.75rem;
  }

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

button[type="submit"]{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}