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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #2d3748;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.login-logo {
  width: 70px;
  height: 70px;
  margin-bottom: 4px;
}

h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2px;
}

.login-sub {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 22px;
  text-align: center;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 12px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: #2d3748;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
}

.pass-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.pass-row input { flex: 1; }
.pass-row button {
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: #f7fafc;
  cursor: pointer;
  padding: 0 12px;
  font-size: 1.05rem;
}
.pass-row button:hover { background: #edf2f7; }

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: #4a5568;
  font-weight: 500;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #3182ce;
  cursor: pointer;
}
.remember-row span { user-select: none; }

.btn-login {
  margin-top: 14px;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: #3182ce;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
}
.btn-login:hover:not(:disabled)  { background: #2c5282; }
.btn-login:active:not(:disabled) { transform: translateY(1px); }
.btn-login:disabled              { opacity: 0.6; cursor: wait; }

.login-error {
  margin-top: 10px;
  color: #e53e3e;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 18px;
  text-align: center;
}

.login-footer {
  margin-top: 22px;
  font-size: 0.7rem;
  color: #a0aec0;
  text-align: center;
}
