:root {
  --bg-top: #eaf4ff;
  --bg-bottom: #d9ecff;

  --brass: #a9782e;
  --brass-dark: #895f22;

  --ink:#171717;

  --card: rgba(255, 255, 255, 0.94);
  --canvas: #f6f5f2;
  --ink: #18232d;
  --muted: #667585;
  --placeholder: #96a5b4;

  --border: #d3dce5;
  --border-focus: #b99a62;

  --gold: #bd9047;
  --gold-dark: #a87932;

  --white: #ffffff;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --sans:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px 20px;

  background:var(--canvas);

  font-family: var(--sans);

  color: var(--ink);

  -webkit-font-smoothing: antialiased;

  position: relative;

  overflow-x: hidden;
}

/* Background decorative curves */

body::before {
  content: "";

  position: fixed;

  width: 620px;
  height: 620px;

  left: -360px;
  top: 80px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    100px 50px 0 rgba(255, 255, 255, 0.12),
    200px 100px 0 rgba(255, 255, 255, 0.08);

  pointer-events: none;
}

body::after {
  content: "";

  position: fixed;

  width: 600px;
  height: 600px;

  right: -390px;
  bottom: -270px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow: -100px -40px 0 rgba(255, 255, 255, 0.12);

  pointer-events: none;
}

/* CARD */

.login-card {
  position: relative;

  width: 100%;

  max-width: 530px;

  padding: 46px 42px 35px;

  background: var(--card);

  border: 1px solid rgba(255, 255, 255, 0.95);

  border-radius: 30px;

  box-shadow:
    0 30px 70px rgba(55, 95, 130, 0.18),
    0 8px 25px rgba(55, 95, 130, 0.08);

  backdrop-filter: blur(12px);

  z-index: 2;
}

/* Decorative card curve */

.card-decoration {
  position: absolute;

  top: 0;
  right: 0;

  width: 190px;
  height: 120px;

  overflow: hidden;

  border-radius: 0 30px 0 0;

  pointer-events: none;
}

.card-decoration::before {
  content: "";

  position: absolute;

  width: 230px;
  height: 150px;

  right: -90px;
  top: -80px;

  border-radius: 50%;

  border: 1px solid rgba(190, 205, 220, 0.35);
}

.card-decoration::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 110px;

  right: -60px;
  top: -40px;

  border-radius: 50%;

  background: rgba(220, 235, 248, 0.28);
}

/* BRAND */

.brand {
  position: relative;

  text-align: center;

  margin-bottom: 31px;

  z-index: 2;
}

.brand-logo {
  width: 48px;
  height: 48px;

  margin: 0 auto 7px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 48px;
  height: 48px;

  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);

  font-size: 25px;

  line-height: 1.1;

  font-weight: 600;

  color: #20303d;
}

.brand-subtitle {
  margin-top: 5px;

  font-size: 9px;

  letter-spacing: 0.25em;

  color: #9a9da1;

  text-transform: uppercase;
}

/* HEADING */

.heading {
  position: relative;

  text-align: center;

  margin-bottom: 31px;

  z-index: 2;
}

.heading h1 {
  margin-bottom: 11px;

  font-family: var(--serif);

  font-size: 39px;

  line-height: 1.12;

  font-weight: 600;

  letter-spacing: -0.025em;

  color: #17242e;
}

.heading p {
  max-width: 400px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 13.5px;

  line-height: 1.65;
}

/* FORM */

.login-form {
  position: relative;

  z-index: 2;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: #27343f;

  font-size: 12px;

  font-weight: 600;
}

.required {
  color: #c65050;
}

/* INPUT */

.input-wrapper {
  position: relative;

  width: 100%;
}

.input {
  width: 100%;

  height: 55px;

  padding: 0 48px 0 53px;

  border: 1px solid var(--border);

  border-radius: 11px;

  outline: none;

  background: rgba(248, 251, 254, 0.78);

  color: var(--ink);

  font-family: var(--sans);

  font-size: 13.5px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.input::placeholder {
  color: var(--placeholder);
}

.input:hover {
  border-color: #c1ccd6;
}

.input:focus {
  border-color: var(--border-focus);

  background: #ffffff;

  box-shadow: 0 0 0 3px rgba(189, 144, 71, 0.1);
}

/* LEFT ICON */

.input-icon {
  position: absolute;

  left: 18px;

  top: 50%;

  width: 19px;
  height: 19px;

  transform: translateY(-50%);

  color: #82909d;

  pointer-events: none;
}

.input-icon svg {
  width: 19px;
  height: 19px;
}

/* PASSWORD TOGGLE */

.toggle-password {
  position: absolute;

  right: 13px;

  top: 50%;

  width: 30px;
  height: 30px;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  background: transparent;

  color: #7d8c99;

  cursor: pointer;

  border-radius: 50%;

  transition:
    background 0.18s,
    color 0.18s;
}

.toggle-password:hover {
  background: rgba(189, 144, 71, 0.09);

  color: var(--gold-dark);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

/* BUTTON */

.login-button {
  width: 100%;

  height: 55px;

  margin-top: 5px;

  border: 0;

  border-radius: 0;

  background: var(--ink);;

  color: #ffffff;

  font-family: var(--sans);

  font-size: 13.5px;

  font-weight: 600;

  letter-spacing: 0.01em;

  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.login-button:hover {
  background: var(--ink);

  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:focus-visible {
  outline: 2px solid var(--ink);;

  outline-offset: 3px;
}

.button-arrow {
  margin-left: 8px;

  font-size: 18px;

  line-height: 0;

  vertical-align: -1px;
}

/* SECURITY */

.security {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  margin-top: 27px;

  padding-top: 19px;

  border-top: 1px solid #e6ebef;

  color: #71808d;

  font-size: 11px;
}

.security::before,
.security::after {
  content: "";

  height: 1px;

  width: 45px;

  background: #e1e6eb;
}

.security-icon {
  width: 16px;
  height: 16px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--gold);

  flex-shrink: 0;
}

/* ALERTS */

.alert {
  margin-bottom: 18px;

  padding: 11px 13px;

  border-radius: 9px;

  font-size: 12px;

  line-height: 1.5;
}

.alert.warning {
  border: 1px solid #ead8aa;

  background: #fffaf0;

  color: #765a22;
}

.alert.error {
  border: 1px solid #e9c5c2;

  background: #fff7f6;

  color: #963c35;
}

/* MOBILE */

@media (max-width: 600px) {
  body {
    padding: 20px 14px;
  }

  .login-card {
    max-width: 100%;

    padding: 34px 22px 27px;

    border-radius: 23px;
  }

  .brand {
    margin-bottom: 26px;
  }

  .heading {
    margin-bottom: 27px;
  }

  .heading h1 {
    font-size: 34px;
  }

  .heading p {
    font-size: 13px;
  }

  .input,
  .login-button {
    height: 52px;
  }

  .security::before,
  .security::after {
    width: 25px;
  }
}

@media (max-width: 380px) {
  .login-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .heading h1 {
    font-size: 31px;
  }
}
