/* ============================================================
   login.css — wynajmujemy.to
   Motyw: warm orange/amber (#f59e0b)
   ============================================================ */

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 16px;
}

.auth-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
}

.auth-box h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-box .sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Alert */
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .86rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Form */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fafaf9;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.form-control::placeholder {
  color: #a8a29e;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: .15s;
  border-radius: 8px;
  font-size: .95rem;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-full {
  width: 100%;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

/* Social buttons */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  text-decoration: none;
  margin-bottom: 10px;
  border: none;
  box-sizing: border-box;
}
.btn-social:hover {
  opacity: .9;
  text-decoration: none;
}
.btn-facebook {
  background: #1877F2;
  color: #fff;
}
.btn-facebook:hover { color: #fff; }
.btn-google {
  background: #fff;
  color: #444;
  border: 1px solid #ddd !important;
}
.btn-google:hover {
  background: #f8f8f8;
  color: #444;
}

/* Divider */
.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.social-divider span {
  font-size: .82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* SMS digit inputs */
.sms-digits {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 20px 0;
}
.sms-digits input {
  width: 42px;
  height: 50px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fafaf9;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.sms-digits input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

/* Back link */
.login-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: .84rem;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}
.login-back:hover {
  color: var(--text);
}

/* Step indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.step-dot.active {
  background: var(--primary);
}
.step-dot.done {
  background: var(--primary-light);
}

/* Responsive */
@media (max-width: 480px) {
  .auth-box {
    padding: 28px 20px;
    border-radius: 12px;
  }
  .sms-digits input {
    width: 36px;
    height: 44px;
    font-size: 1.1rem;
  }
}
