/* ============================================================
   PERKLY — AUTH / LOGIN STYLESHEET
   app/assets/stylesheets/login.css
   All login/signup/password reset page styles live here.
   Zero inline styles in views.
   ============================================================ */

/* ── Auth screen wrapper ─────────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  background-color: #F0F2FF;
  background-image: url("/assets/auth_bg-f66a2982.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* ── Logo area ───────────────────────────────────────────────────────────── */
.auth-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.auth-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 40px rgba(79, 70, 229, 0.1), 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
}

/* ── Card header ─────────────────────────────────────────────────────────── */
.auth-card-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.auth-card-sub {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin-bottom: 28px;
}

/* ── Field labels ────────────────────────────────────────────────────────── */
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}

/* ── Input wrapper with icon ─────────────────────────────────────────────── */
.auth-input-wrap {
  position: relative;
  margin-bottom: 18px;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.auth-input-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.auth-inp {
  width: 100%;
  padding: 13px 44px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-inp::placeholder {
  color: #9CA3AF;
}

.auth-inp:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ── Password toggle ─────────────────────────────────────────────────────── */
.auth-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.auth-pw-toggle:hover {
  color: #4F46E5;
}

.auth-pw-toggle img {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

/* ── Password row (label + forgot link) ──────────────────────────────────── */
.auth-pw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.auth-forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: #4F46E5;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-forgot-link:hover {
  color: #3730A3;
  text-decoration: underline;
}

/* ── Remember me ─────────────────────────────────────────────────────────── */
.auth-remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}

.auth-remember-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #4F46E5;
  flex-shrink: 0;
  cursor: pointer;
}

.auth-remember-label {
  font-size: 13px;
  color: #4B5563;
  cursor: pointer;
  user-select: none;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: #4F46E5;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  letter-spacing: 0.01em;
}

.auth-submit-btn:hover {
  background: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-arrow {
  font-size: 18px;
  line-height: 1;
}

/* ── Footer link ─────────────────────────────────────────────────────────── */
.auth-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #6B7280;
}

.auth-footer-link {
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-footer-link:hover {
  color: #3730A3;
  text-decoration: underline;
}

/* ── Error messages ──────────────────────────────────────────────────────── */
.auth-errors {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.auth-errors h2 {
  font-size: 13px;
  font-weight: 700;
  color: #DC2626;
  margin-bottom: 6px;
}

.auth-errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-errors li {
  font-size: 12px;
  color: #DC2626;
  padding: 2px 0;
}

/* ── Copyright ───────────────────────────────────────────────────────────── */
.auth-copyright {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .auth-card-title {
    font-size: 22px;
  }
}
