/* ============================================================
   login.css — servicedesk | Celeste & Blanco
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sky:       #0ea5e9;
  --sky-dark:  #0284c7;
  --sky-light: #e0f2fe;
  --sky-pale:  #f0f9ff;
  --white:     #ffffff;
  --slate:     #0f172a;
  --muted:     #64748b;
  --border:    #bae6fd;
  --error:     #ef4444;
  --radius:    14px;
  --shadow:    0 20px 60px rgba(14,165,233,.18);
}

body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 40%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
body::before {
  width: 520px; height: 520px;
  top: -160px; left: -160px;
  background: radial-gradient(circle, rgba(14,165,233,.22) 0%, transparent 70%);
}
body::after {
  width: 400px; height: 400px;
  bottom: -120px; right: -120px;
  background: radial-gradient(circle, rgba(2,132,199,.18) 0%, transparent 70%);
}

/* ── Login card ─────────────────────────────────────────── */
.login {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 1;
}

.login-card {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: cardIn .5s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ─────────────────────────────────────────────── */
.login-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand-mark {
  display: block;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
  flex-shrink: 0;
  position: relative;
}
.brand-mark::after {
  content: 'SD';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .03em;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .25rem;
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.2;
}

.lead {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* ── Form ───────────────────────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.login-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: .35rem;
  letter-spacing: .02em;
}

.login-form input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--slate);
  background: var(--sky-pale);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-form input:focus {
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

/* ── Button ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
  border: none;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
  color: var(--white);
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(14,165,233,.35);
  margin-top: .25rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14,165,233,.4);
}
.btn:active { transform: translateY(0); }

/* ── Error ──────────────────────────────────────────────── */
.field-error {
  display: block;
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .5rem;
}