body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.card {
  width: 100%;
  max-width: 900px;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.login-card {
  max-width: 620px;
}

.hidden {
  display: none !important;
}

.brand-block,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand-block {
  justify-content: flex-start;
}

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #1f2933;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 30px;
}

h2 {
  margin-top: 24px;
  margin-bottom: 14px;
  font-size: 22px;
}

.subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 16px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input {
  padding: 12px;
  font-size: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

button,
.app-tile {
  padding: 14px;
  font-size: 18px;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: #1f2933;
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.secondary-btn {
  background: #e2e8f0;
  color: #1f2933;
  font-size: 15px;
  padding: 10px 14px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.app-tile {
  min-height: 110px;
  text-align: left;
  display: grid;
  align-content: center;
  gap: 8px;
}

.app-tile span {
  font-size: 20px;
}

.app-tile small {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
}

.message {
  margin-top: 16px;
  text-align: center;
  color: #b00020;
  min-height: 22px;
}

.notice {
  background: #eef3f8;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  color: #475569;
}

@media (max-width: 640px) {
  .card {
    padding: 24px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-btn {
    width: 100%;
  }
}
