/* =====================================================
   AUTH LAYOUT – PREMIUM SAAS (LOGIN / SIGNUP)
===================================================== */

/* Layout wrapper */
.auth-layout {
  min-height: 100vh;
  display: flex;
}

/* ===============================
   LEFT BRAND / VISUAL PANEL
================================ */
.auth-visual {
  flex: 1;
  background:
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 4rem;
}

.auth-visual-inner {
  max-width: 460px;
}

.auth-visual h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.auth-visual p {
  color: #cbd5f5;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.auth-features i {
  color: #38bdf8;
  font-size: 1.1rem;
}

/* ===============================
   RIGHT FORM PANEL
================================ */
.auth-wrapper {
  flex: 1;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2.2rem;
  border: 1px solid var(--border);
}

/* Branding */
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand h1 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: .75rem 0 .25rem;
}

.auth-brand p {
  color: var(--muted);
  font-size: .95rem;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  display: block;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.input-icon input {
  width: 100%;
  padding: .7rem .9rem .7rem 2.2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: .95rem;
}

.input-icon input:focus {
  border-color: var(--primary);
  outline: none;
}

/* Submit button */
.btn-auth {
  width: 100%;
  padding: .8rem;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  transition: .2s ease;
}

.btn-auth:hover {
  background: var(--primary-dark);
}

/* Error alert */
.auth-alert {
  background: #fee2e2;
  color: #991b1b;
  padding: .6rem .75rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  font-size: .85rem;
}

/* Options row */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  margin-bottom: 1rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--primary);
}

.forgot-link {
  color: var(--primary);
  font-weight: 600;
}

/* Captcha note */
.captcha-note {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.1rem;
}

/* OR divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
/* Footer */
.auth-footer {
  margin-top: 1.5rem;
  font-size: .85rem;
  display: flex;
  justify-content: center;
  gap: .6rem;
}

.auth-footer-stack {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: .35rem;
}

.signup-link {
  font-weight: 700;
  color: var(--primary);
}

/* Google Sign-in Button */
.google-signin-wrapper {
  margin-top: 1.25rem;
}

.btn-google {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  background: #ffffff;
  color: #1f1f1f;

  border: 1px solid #dadce0;
  border-radius: 12px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-google img {
  width: 18px;
  height: 18px;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
}

.btn-google:active {
  background: #f1f3f4;
}

.btn-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
}


/* ===============================
   MOBILE
================================ */
@media (max-width: 992px) {
  .auth-visual {
    display: none;
  }

  .auth-wrapper {
    flex: 1;
    padding: 1.25rem;
  }
}
