:root {
  --purple: #6715d8;
  --purple-dark: #4c18bb;
  --yellow: #ffc21d;
  --text: #111111;
  --muted: #565d68;
  --input: #e7e7e7;
  --placeholder: #a69ac1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

button,
input {
  font: inherit;
}

a {
  color: var(--purple);
  text-decoration: none;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  background: rgba(255, 255, 255, 0.55);
}

.splash-screen.hidden {
  display: none;
}

.splash-card {
  position: relative;
  width: 410px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.splash-card img {
  display: block;
  width: 100%;
  height: auto;
}

.splash-close {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 0 0 5px 0;
  color: #ffffff;
  background: #ff9800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.install-button {
  display: block;
  width: 100%;
  min-height: 58px;
  border: 1px solid #222222;
  border-width: 1px 1px 0;
  color: #ffffff;
  background: #4b4b4b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.login-page {
  display: flex;
  min-height: calc(100vh - 34px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 58px;
}

.login-card {
  position: relative;
  width: 502px;
  min-height: 552px;
  padding: 94px 39px 36px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.logo-badge {
  position: absolute;
  top: -51px;
  left: 50%;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateX(-50%);
}

.logo-p {
  position: relative;
  width: 25px;
  height: 30px;
}

.logo-p::before,
.logo-p::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.logo-p::before {
  left: 0;
  top: 0;
  width: 12px;
  height: 30px;
  border-radius: 3px 0 0 3px;
}

.logo-p::after {
  left: 0;
  top: 0;
  width: 24px;
  height: 17px;
  border-radius: 4px 10px 10px 0;
}

.logo-dot {
  position: absolute;
  left: 39px;
  top: 56px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.login-heading {
  text-align: center;
}

.login-heading h1 {
  margin: 0 0 10px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.login-heading p {
  margin: 0 0 6px;
  color: #505764;
  font-size: 14px;
  line-height: 1.4;
}

.login-form {
  display: grid;
  margin-top: 3px;
}

.login-form > label {
  margin-top: 3px;
  margin-bottom: 9px;
  color: #525864;
  font-size: 14px;
  font-weight: 400;
}

.login-form input[type="email"],
.password-field input {
  width: 100%;
  height: 37px;
  border: 1px solid var(--input);
  border-radius: 2px;
  padding: 0 14px;
  color: #333333;
  background: #ffffff;
  outline: none;
}

.login-form input[type="email"]::placeholder,
.password-field input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.login-form input[type="email"]:focus,
.password-field input:focus {
  border-color: #cfcfcf;
}

.password-field {
  position: relative;
  margin-bottom: 16px;
}

.password-field input {
  padding-right: 42px;
}

.eye-button {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  padding: 0;
  color: #888888;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.eye-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
  color: #4f5965;
  font-size: 14px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--purple);
}

.submit-button {
  justify-self: center;
  width: 87px;
  height: 37px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: var(--purple);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--purple-dark);
}

.signup-text {
  margin: 29px 0 0;
  color: #4f5965;
  font-size: 14px;
  text-align: center;
}

.page-footer {
  min-height: 34px;
  color: #555555;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.hidden {
  display: none !important;
}

.certificate-page {
  min-height: calc(100vh - 34px);
  padding: 20px;
  background: #f4f6fb;
}

.certificate-shell {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.certificate-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.certificate-toolbar h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.certificate-toolbar p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.certificate-actions {
  display: flex;
  gap: 8px;
}

.toolbar-button {
  display: inline-grid;
  min-width: 88px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--purple);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.certificate-frame {
  padding: 10px;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.certificate-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

@media (max-width: 620px) {
  .login-page {
    min-height: calc(100vh - 34px);
    padding: 58px 14px 0;
  }

  .login-card {
    width: 100%;
    min-height: 552px;
    padding-left: 39px;
    padding-right: 39px;
  }

  .certificate-page {
    padding: 10px;
  }

  .certificate-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .certificate-actions {
    width: 100%;
  }

  .toolbar-button {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .login-card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .form-options {
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .splash-screen,
  .certificate-toolbar,
  .page-footer {
    display: none !important;
  }

  .certificate-page {
    min-height: auto;
    padding: 0;
    background: #ffffff;
  }

  .certificate-shell,
  .certificate-frame {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
