/* ===== MODERN INDUSTRIAL AUTH UI ===== */

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-wrapper {
  min-height: 100vh;
  background: #f4f5f7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* MAIN CONTAINER */
.auth-layout {
  width: 100%;
  max-width: 980px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

/* LEFT PANEL */
.auth-card {
  width: 50%;
  padding: 42px 38px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 22px;
}

.auth-subtitle a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

/* GOOGLE BUTTON */
.btn-google {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #db4437;
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.btn-google:hover {
  background: #c53a2e;
}

/* DIVIDER */
.divider {
  margin: 24px 0;
  position: relative;
  text-align: center;
}

.divider span {
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  color: #999;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 0 0;
  height: 1px;
  background: #e5e7eb;
  z-index: -1;
}

/* BUTTONS */
.btn-outline {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-success {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
}

.full {
  width: 100%;
  margin-top: 16px;
}

/* INPUTS */
.auth-form label {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  margin-top: 6px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group span {
  padding: 10px 12px;
  background: #f3f4f6;
  border-radius: 8px;
}

/* MOBILE OTP */
.mobile-box {
  display: none;
  margin-top: 14px;
}

.mobile-box input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  margin-top: 10px;
}

/* RIGHT IMAGE */
.auth-image {
  width: 50%;
  background: #eee;
}

.auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .auth-layout {
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-card {
    width: 100%;
    padding: 28px 22px;
  }

  .auth-image {
    display: none;
  }
}

/* ===== PASSWORD STRENGTH METER ===== */

.password-meter {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.strength-text {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}

/* COLORS */
.strength-weak {
  background: #dc2626;
  color: #dc2626;
}

.strength-medium {
  background: #f59e0b;
  color: #f59e0b;
}

.strength-strong {
  background: #16a34a;
  color: #16a34a;
}
/* ===== FLOATING LABELS ===== */

.field {
  position: relative;
  margin-top: 18px;
}

.field input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: transparent;
  font-size: 14px;
}

.field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 0 6px;
  font-size: 13px;
  color: #6b7280;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* FLOAT EFFECT */
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 11px;
  color: #2563eb;
}

/* FOCUS STATE */
.field input:focus {
  border-color: #2563eb;
  outline: none;
}
/* ===== ERROR SHAKE ANIMATION ===== */

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease;
}

/* INPUT ERROR STATE */
.field input.error {
  border-color: #dc2626;
}

.field input.error + label {
  color: #dc2626;
}


/* ===============================
   AUTH DARK MODE
================================ */

body.dark-mode .auth-wrapper {
  background: #0f1115;
}

body.dark-mode .auth-card {
  background: #151821;
  color: #e5e7eb;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* TITLES */
body.dark-mode .auth-title {
  color: #ffffff;
}

body.dark-mode .auth-subtitle {
  color: #9ca3af;
}

body.dark-mode .auth-subtitle a {
  color: #60a5fa;
}

/* INPUTS */
body.dark-mode .field input {
  /* background: #0f1115; */
  border: 1px solid #2a2f3a;
  color: #ffffff;
}

body.dark-mode .field label {
  color: #9ca3af;
}

/* FLOATING LABEL ACTIVE */
body.dark-mode .field input:focus + label,
body.dark-mode .field input:not(:placeholder-shown) + label {
  color: #60a5fa;
}

/* GOOGLE BUTTON */
body.dark-mode .btn-google {
  background: #db4437;
  color: #fff;
}

/* OUTLINE BUTTON */
body.dark-mode .btn-outline {
  background: transparent;
  border: 1px solid #2a2f3a;
  color: #e5e7eb;
}

body.dark-mode .btn-outline:hover {
  background: #1f2430;
}

/* PRIMARY / SUCCESS */
body.dark-mode .btn-primary {
  background: #2563eb;
}

body.dark-mode .btn-success {
  background: #16a34a;
}

/* DIVIDER */
body.dark-mode .divider::before {
  background: #2a2f3a;
}

body.dark-mode .divider span {
  background: #151821;
  color: #9ca3af;
}

/* PASSWORD METER */
body.dark-mode .password-meter {
  background: #1f2430;
}

/* ERROR STATE */
body.dark-mode .field input.error {
  border-color: #ef4444;
}

body.dark-mode .field input.error + label {
  color: #ef4444;
}

/* RIGHT IMAGE PANEL */
body.dark-mode .auth-image {
  filter: brightness(0.8) contrast(1.05);
}


/* ===============================
   AUTH SUCCESS LOADER
================================ */

.auth-loader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-loader.active {
  opacity: 1;
  pointer-events: all;
}

/* LOADER CARD */
.auth-loader-box {
  background: #ffffff;
  padding: 26px 28px;
  border-radius: 16px;
  text-align: center;
  min-width: 220px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* SPINNER */
.loader-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* TEXT */
.auth-loader-text {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

/* DARK MODE */
body.dark-mode .auth-loader-box {
  background: #151821;
  color: #e5e7eb;
}

body.dark-mode .auth-loader-text {
  color: #e5e7eb;
}
/* ===== REMEMBER ME ===== */

.remember-row {
  margin: 14px 0;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.remember input {
  accent-color: #2563eb;
}

/* DARK MODE */
body.dark-mode .remember {
  color: #d1d5db;
}
body.dark-mode .remember input {
  accent-color: #60a5fa;
}