/* login.css — cometo.pl */
:root {
  --primary: #1e3a5f;
  --primary-light: #2a4d7a;
  --primary-dark: #152d4a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --error-bg: #fef2f2;
  --error-text: #dc2626;
  --error-border: #fecaca;
  --success-bg: #f0fdf4;
  --success-text: #16a34a;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }

/* ── HEADER ────────────────────────────────────── */
.site-header {
  background: var(--primary);
  border-bottom: 1px solid var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-logo i {
  font-size: 1.4rem;
  color: var(--accent);
}

.logo-text { color: #fff; }
.logo-dot { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  transition: background .15s, color .15s;
  margin-left: 8px;
}

.btn-login {
  background: var(--accent);
  color: #fff;
}

.btn-login:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-account {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.btn-account:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── FOOTER ────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--primary);
  color: rgba(255,255,255,.75);
  font-size: .84rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 40px;
  align-items: start;
}

.footer-left {}

.footer-brand { max-width: 500px; margin-bottom: 24px; }

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-logo i { color: var(--accent); }

.footer-brand p { margin-top: 4px; line-height: 1.5; }

.footer-desc { color: rgba(255,255,255,.6); margin-bottom: 8px !important; }
.footer-address { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-contact { color: rgba(255,255,255,.45); font-size: .78rem; }

.footer-columns {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(255,255,255,.7);
  transition: color .15s;
  font-size: .84rem;
}

.footer-col a:hover { color: #fff; }

.footer-facebook {
  flex-shrink: 0;
  width: 500px;
}

.fb-overlay {
  display: block;
  text-align: center;
  padding: 12px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
  transition: background .15s, color .15s;
  text-decoration: none;
}

.fb-overlay:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,.7);
  transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
  font-size: .78rem;
}

/* ── AUTH LAYOUT ───────────────────────────────── */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.auth-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.auth-brand-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

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

/* ── FORMS ─────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-control::placeholder { color: var(--text-light); }

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-full { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ── SOCIAL BUTTONS ────────────────────────────── */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity .15s, transform .1s;
  box-sizing: border-box;
}

.btn-social:active { transform: scale(.98); }
.btn-social:hover { opacity: .92; }

.btn-facebook {
  background: #1877F2;
  color: #fff;
}

.btn-facebook:hover { color: #fff; }

.btn-google {
  background: #fff;
  color: #444;
  border: 1.5px solid var(--border);
}

.btn-google:hover { color: #222; background: #f8fafc; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── SMS DIGITS ────────────────────────────────── */
.sms-digits {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.sms-digits input {
  width: 100%;
  aspect-ratio: 1;
  max-width: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.sms-digits input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* ── ALERTS ────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #bbf7d0;
}

/* ── LINKS & MISC ──────────────────────────────── */
.auth-link {
  text-align: center;
  margin-top: 16px;
}

.auth-link a {
  font-size: .82rem;
  color: var(--text-muted);
}

.auth-link a:hover { color: var(--accent); }

.auth-legal {
  text-align: center;
  margin-top: 20px;
  font-size: .76rem;
  color: var(--text-light);
  line-height: 1.5;
}

.auth-legal a { color: var(--text-muted); }
.auth-legal a:hover { color: var(--accent); }

.sms-info {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.sms-info a { color: var(--accent); }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--primary-dark);
    gap: 4px;
  }

  .header-nav.open { display: flex; }

  .nav-link {
    padding: 10px 14px;
    width: 100%;
  }

  .btn-nav {
    margin-left: 0;
    margin-top: 4px;
    justify-content: center;
  }

  .mobile-toggle { display: block; }

  .auth-box {
    padding: 28px 20px;
    box-shadow: var(--shadow);
  }

  .auth-wrap { padding: 24px 12px; }

  .sms-digits input {
    max-width: 40px;
    font-size: 1.1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 400px) {
  .sms-digits { gap: 4px; }
  .sms-digits input {
    max-width: 36px;
    font-size: 1rem;
  }
}
