/* =========================================================
   DAVY+ LOGIN
   ========================================================= */
:root {
  --background: #080b10;
  --card: #111720;
  --input: #0b1017;
  --text: #f6f7f9;
  --muted: #98a3b2;
  --accent: #e5a00d;
  --accent-light: #ffbd27;
  --line: rgba(255, 255, 255, 0.09);

  --shadow:
    0 28px 90px rgba(0, 0, 0, 0.48);
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 24px;

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(229, 160, 13, 0.16),
      transparent 30rem
    ),
    var(--background);
}


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.login-shell {
  width: min(390px, 100%);
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
  position: relative;

  padding:
    38px
    34px
    30px;

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025),
      transparent 30%
    ),
    var(--card);

  box-shadow: var(--shadow);
}

.login-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--accent),
      transparent
    );

  opacity: 0.8;
}


/* =========================================================
   DAVY+ ICON
   ========================================================= */

.login-icon {
  display: block;

  width: 96px;
  height: 96px;

  margin:
    0
    auto
    30px;

  border-radius: 23px;

  object-fit: cover;

  filter:
    drop-shadow(
      0 12px 24px rgba(0, 0, 0, 0.35)
    );
}


/* =========================================================
   FORM
   ========================================================= */

form {
  width: 100%;
}

input {
  display: block;

  width: 100%;
  height: 56px;

  padding:
    0
    17px;

  border:
    1px solid
    var(--line);

  border-radius:
    13px;

  outline: none;

  background:
    var(--input);

  color:
    var(--text);

  font: inherit;

  font-size:
    0.97rem;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input::placeholder {
  color: #697483;
}

input:hover {
  border-color:
    rgba(255, 255, 255, 0.15);
}

input:focus {
  border-color:
    rgba(229, 160, 13, 0.72);

  background:
    #0d131b;

  box-shadow:
    0 0 0 3px
    rgba(229, 160, 13, 0.10);
}

input:disabled {
  opacity: 0.65;
}


/* =========================================================
   CONTINUE BUTTON
   ========================================================= */

button {
  appearance: none;

  display: block;

  width: 100%;
  height: 57px;

  margin-top: 16px;

  padding:
    0
    20px;

  border: 0;

  border-radius:
    13px;

  background:
    linear-gradient(
      180deg,
      var(--accent-light),
      var(--accent)
    );

  color: #111;

  font: inherit;
  font-weight: 820;

  cursor: pointer;

  box-shadow:
    0 10px 30px
    rgba(229, 160, 13, 0.14);

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.06);

  transform:
    translateY(-1px);

  box-shadow:
    0 14px 32px
    rgba(229, 160, 13, 0.20);
}

button:active:not(:disabled) {
  transform:
    translateY(0);
}

button:focus-visible {
  outline:
    3px solid
    rgba(255, 189, 39, 0.40);

  outline-offset: 4px;
}

button:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;
}


/* =========================================================
   RESPONSE MESSAGE
   ========================================================= */

/*
   Completely hide this area while empty.

   This removes the extra vertical space
   and the little mark you were seeing
   beneath the button.
*/

.message:empty {
  display: none;
}

.message:not(:empty) {
  display: block;

  margin-top: 18px;

  text-align: center;

  color: var(--muted);

  font-size: 0.83rem;

  line-height: 1.45;
}

.message.success {
  color: #bdc7d3;
}

.message.error {
  color: #e5a8a8;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;

  margin: -1px;

  overflow: hidden;

  clip:
    rect(
      0,
      0,
      0,
      0
    );

  white-space: nowrap;

  border: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

  body {
    padding: 18px;
  }

  .login-card {
    padding:
      34px
      24px
      26px;

    border-radius:
      21px;
  }

  .login-icon {
    width: 86px;
    height: 86px;

    margin-bottom: 26px;

    border-radius: 21px;
  }

  input {
    height: 55px;
  }

  button {
    height: 56px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration:
      0.001ms !important;

    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;
  }

}