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

:root {
  --bg:        #f0f2f5;
  --surface:   #ffffff;
  --border:    #e2e6ea;
  --primary:   #4f46e5;
  --primary-h: #4338ca;
  --text:      #1a1d23;
  --muted:     #6b7280;
  --error:     #dc2626;
  --radius:    12px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.logo img {
  height: 80px;
  width: auto;
}

h1 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.form-group {
  text-align: left;
  margin-bottom: 16px;
}

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

input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}

input[type="password"]:focus { border-color: var(--primary); }

.btn-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
}

.btn-signin:hover:not(:disabled) { background: var(--primary-h); }
.btn-signin:disabled { opacity: .6; cursor: not-allowed; }

.error-msg {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: .8125rem;
  color: var(--error);
  text-align: left;
}

.error-msg.visible { display: block; }

.divider {
  margin: 28px 0;
  border: none;
  border-top: 1px solid var(--border);
}

.footer-note {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-note a {
  color: var(--primary);
  text-decoration: none;
}
