/* =================================================
   Base
   ================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #e6e9ef, #d8dde6);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
}

/* =================================================
   Window
   ================================================= */
.login-window {
  width: 380px;
  background: #f5f6f8;
  border: 1px solid #b8bcc6;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Header */
.login-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #c6cad3;
  background: linear-gradient(180deg, #ffffff, #eef1f6);
}

.login-header img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.login-header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.login-header span {
  font-size: 0.75rem;
  color: #555;
}

/* Content */
.login-content {
  padding: 18px 16px 20px;
}

.login-content p {
  font-size: 0.85rem;
  margin: 0 0 14px;
  color: #444;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Aligned form rows */
.form-row {
  display: grid;
  grid-template-columns: 90px 1fr; /* label width | input */
  align-items: center;
  gap: 8px;
}

label {
  font-size: 0.75rem;
  font-weight: 600;
}

input {
  padding: 8px 9px;
  font-size: 0.85rem;
  border: 1px solid #9aa0ab;
  background: #fff;
}

input:focus {
  border-color: #4a6cf7;
  outline: none;
  box-shadow: 0 0 0 1px rgba(74,108,247,0.35);
}

/* Actions */
.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.login-btn {
  background: linear-gradient(180deg, #fdfdfd, #e0e3ea);
  border: 1px solid #9aa0ab;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff;
}

.login-btn:active {
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
}

.help-link {
  font-size: 0.75rem;
  color: #3a5bdc;
  text-decoration: none;
}

.help-link:hover {
  text-decoration: underline;
}

/* Error */
.error {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #b00020;
  display: none;
}

/* Footer */
.login-footer {
  padding: 10px 14px;
  border-top: 1px solid #c6cad3;
  font-size: 0.7rem;
  color: #666;
  background: #eef1f6;
}

.help-message {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #333;
  background: #eef1f6;
  border: 1px solid #c6cad3;
  padding: 8px 10px;
  display: none;
  line-height: 1.4;
}