/* ========================================
   AUTH PAGES STYLES (Login / Register)
   ======================================== */

.auth-body {
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  width: 100%;
  min-height: 85vh;
  background: #151515;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* AUTH CARD (Form Side) */
.auth-card {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.auth-logo img {
  height: 60px;
  width: auto;
}

.auth-card h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #888;
  font-size: 1rem;
  margin-bottom: 30px;
}

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

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .form-group label {
  display: block;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.auth-form .form-group input {
  width: 100%;
  padding: 14px 16px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: #ff9500;
}

.auth-form .form-group input::placeholder {
  color: #666;
}

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

/* PASSWORD WRAPPER */
.password-wrapper {
  position: relative;
}

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

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #fff;
}

/* PASSWORD STRENGTH */
.password-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #ef4444;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-bar.weak span {
  width: 33%;
  background: #ef4444;
}

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

.strength-bar.strong span {
  width: 100%;
  background: #22c55e;
}

.strength-text {
  font-size: 0.8rem;
  color: #666;
  min-width: 100px;
}

/* FORM OPTIONS */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me,
.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
}

.remember-me input,
.terms-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #ff9500;
  cursor: pointer;
}

.terms-checkbox span a {
  color: #ff9500;
  text-decoration: none;
}

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

.forgot-link {
  color: #ff9500;
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* AUTH BUTTON */
.auth-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 10px;
}

/* DIVIDER */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

.auth-divider span {
  color: #666;
  font-size: 0.85rem;
}

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #1a1a1a;
  border-color: #444;
}

/* AUTH FOOTER */
.auth-footer {
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
}

.auth-footer a {
  color: #ff9500;
  text-decoration: none;
  font-weight: 500;
}

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

/* AUTH BG (Right Side) */
.auth-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.auth-bg::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.auth-bg::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
}

.auth-bg-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-bg-content h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.auth-bg-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  padding: 10px 0;
}

.auth-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: #ff9500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* MESSAGE */
.message {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
  font-size: 0.9rem;
}

.message.show {
  display: block;
}

.message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 600px;
    min-height: auto;
  }

  .auth-bg {
    display: none;
  }

  .auth-card {
    padding: 50px 40px;
  }
}

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

  .auth-card {
    padding: 30px 20px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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