:root {
  --orange: #ff7a45;
  --orange-dark: #f45b24;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #cfd6df;
  --white: #ffffff;
  --radius-card: 14px;
  --radius-square: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 122, 69, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.frame-page,
body.frame-page .app-shell,
body.frame-page .frame-wrap {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

button {
  font-family: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-card,
.assignment-card {
  width: min(100%, 380px);
  padding: 24px 30px 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-card);
}

.assignment-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.assignment-card {
  width: min(100%, 520px);
  padding: 30px 36px 28px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.assignment-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff4ef;
  color: var(--orange-dark);
  font-size: 26px;
  font-weight: 900;
}

.paydesk-logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 16px;
}

.login-header {
  margin-bottom: 18px;
  text-align: center;
}

.login-header h1 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
}

.login-header p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.login-header span {
  color: var(--orange-dark);
}

.google-sign-in,
.launch-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius-square);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(244, 91, 36, .22);
  cursor: pointer;
  transition: .18s ease;
}

.google-sign-in:hover,
.launch-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(244, 91, 36, .26);
}

.destination-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.google-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: #4285f4;
  font-size: 14px;
  font-weight: 800;
}

.bridge-note,
.error-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.error-note {
  color: #b42318;
}

.try-another-account {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border: 1.5px solid var(--orange-dark);
  border-radius: var(--radius-square);
  background: var(--white);
  color: var(--orange-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: .18s ease;
}

.try-another-account:hover {
  background: #fff4ef;
  transform: translateY(-1px);
}

.try-another-account:focus-visible {
  outline: 3px solid rgba(244, 91, 36, .25);
  outline-offset: 2px;
}

.powered {
  margin-top: 24px;
  text-align: center;
}

.powered-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.powered-label span {
  height: 1.5px;
  background: var(--line);
}

.payroll-logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 16px auto 0;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  border: 0;
}

.frame-wrap {
  position: relative;
  height: 100vh;
}

.frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100vh;
  border: 0;
  opacity: 1;
  transition: opacity .18s ease;
}

.frame-wrap.is-loading iframe,
.frame-wrap.has-failed iframe {
  opacity: 0;
  pointer-events: none;
}

.frame-wrap.is-ready iframe {
  opacity: 1;
}

.frame-loading {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 122, 69, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.frame-loading .paydesk-logo {
  margin: 0;
}

.frame-wrap.is-ready .frame-loading,
.frame-wrap.has-failed .frame-loading {
  display: none;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--orange-dark);
  border-radius: 50%;
  animation: paydesk-spin .85s linear infinite;
}

@keyframes paydesk-spin {
  to {
    transform: rotate(360deg);
  }
}

.frame-failure {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 122, 69, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 250, 252, .98) 100%);
}

.wrapper-signout {
  display: none;
}

.wrapper-signout:hover {
  background: #fff4ef;
}

.wrapper-signout svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .login-card {
    padding: 30px 22px 26px;
  }
}
