:root {
  /* AllSoftCorp brand palette */
  --brand-purple: #6c1f7b;
  --brand-magenta: #b41874;
  --brand-blue: #689ab4;
  --brand-gradient: linear-gradient(to right, #6c1f7b, #b41874);

  --ink: #171717;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card-bg: #ffffff;
  --bg: #f8f9fb;
  --danger: #b91c1c;

  --radius-card: 16px;
  --radius-control: 10px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(55rem 55rem at 12% -12%, rgba(108, 31, 123, 0.07), transparent 60%),
    radial-gradient(48rem 48rem at 108% 8%, rgba(180, 24, 116, 0.05), transparent 55%);
  background-attachment: fixed;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.login-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 40px 32px 28px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

/* Brand accent bar echoing the ALL·SOFT·CORP wordmark colours */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #6c1f7b 0%, #b41874 55%, #689ab4 100%);
}

.brand-logo {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 auto 26px;
}

.login-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.login-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 16px rgba(108, 31, 123, 0.22);
  transition: transform 0.06s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(108, 31, 123, 0.28);
}

.login-btn:active {
  transform: translateY(1px);
}

.login-btn:focus-visible {
  outline: 3px solid rgba(108, 31, 123, 0.35);
  outline-offset: 2px;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  height: 46px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  outline: none;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(108, 31, 123, 0.14);
}

.login-form {
  margin-top: 8px;
}

.login-form .login-btn {
  margin-top: 8px;
}

.banner {
  border-radius: var(--radius-control);
  padding: 11px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.4;
}

.banner.error {
  background: #fef2f2;
  border: 1px solid #fecdd3;
  color: var(--danger);
}

.banner.info {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: var(--brand-purple);
}

.login-footnote {
  margin: 26px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
