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

body {
  background: white;
  font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Noto Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: #1a1e2b;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 460px;
  margin: 2rem;
  background: white;
  border-radius: 32px;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid #eef2f8;
}

.login-card { padding: 2.5rem; }

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1.2rem;
}

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

.logo span {
  font-weight: 600;
  font-size: 1rem;
  color: #1e3a5f;
  letter-spacing: -0.2px;
}

.login-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #1a2a3f, #1e3a5f);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.login-header .sub {
  color: #5b6e8c;
  font-size: 0.85rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #8ba0bc;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 0.9rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: white;
  transition: all 0.2s ease;
  color: #1e2f44;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-input::placeholder {
  color: #b9c4d4;
  font-family: system-ui, monospace;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1e3a5f;
}

.checkbox label {
  color: #4b5e77;
  cursor: pointer;
}

.forgot-link {
  color: #2c6e9e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #1e3a5f;
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  background: #1e3a5f;
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.2rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: #0f2b42;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,58,95,0.2);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #a0b3cc;
  font-size: 0.75rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eef2f8;
}

.divider span { margin: 0 1rem; }

.social-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafd;
  border: 1px solid #e2e8f0;
  padding: 0.7rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #2c3e50;
}

.btn-social:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.register-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: #5b6e8c;
  margin-top: 1rem;
}

.register-link {
  color: #1e3a5f;
  font-weight: 600;
  text-decoration: none;
}

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

.message-area {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.6rem;
  border-radius: 40px;
  display: none;
}

.message-area.error {
  background: #fee2e2;
  color: #b91c1c;
  display: block;
  border: 1px solid #fecaca;
}

.message-area.success {
  background: #e0f2fe;
  color: #0c4a6e;
  display: block;
  border: 1px solid #b9e2fa;
}

.tech-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.7rem;
  color: #8a99b0;
  border-top: 1px solid #eef2f6;
  padding-top: 1rem;
}

@media (max-width: 480px) {
  .login-card { padding: 1.8rem; }
  .login-container { margin: 1rem; }
  .social-buttons { flex-direction: column; }
}
