/* =========================================================
   LEDGERS — CLIENT LOGIN
   File: css/client/login.css
========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #1f1f57;
  color: #0a0a4f;
}

.login-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(247, 221, 131, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(247, 221, 131, 0.08),
      transparent 28%
    ),
    #1f1f57;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(247, 221, 131, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.login-page::before {
  top: -180px;
  right: -150px;
  width: 420px;
  height: 420px;
}

.login-page::after {
  bottom: -220px;
  left: -170px;
  width: 500px;
  height: 500px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 470px;

  padding: 48px 46px 34px;

  background: #ffffff;

  border:
    1px solid rgba(10, 10, 79, 0.06);

  border-radius: 24px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.24),
    0 8px 24px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   BRAND
========================================================= */

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 13px;

  width: fit-content;

  margin: 0 auto 30px;

  color: #0a0a4f;
  text-decoration: none;
}

.login-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.login-brand span {
  padding-left: 14px;

  border-left:
    2px solid #f7dd83;

  font-family:
    "Montserrat", serif;

  font-size: 45px;
  font-weight: 700;
  letter-spacing: 2px;
}


/* =========================================================
   HEADINGS
========================================================= */

.login-card h1 {
  margin: 0 0 12px;

  color: #71717f;

  font-family:
    Georgia, serif;

  font-size: 30px;
  line-height: 1.15;

  text-align: center;
}

.login-subtitle {
  max-width: 340px;

  margin:
    0 auto 32px;

  color: #71717f;

  font-size: 15px;
  line-height: 1.7;

  text-align: center;
}


/* =========================================================
   LOGIN FORM
========================================================= */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  width: 100%;
}


/* =========================================================
   INPUTS
========================================================= */

/*
 * IMPORTANT:
 *
 * The password input is selected using
 * .password-field input instead of
 * input[type="password"].
 *
 * This keeps its styling when JavaScript changes
 * its type from "password" to "text".
 */

.login-form input[type="email"],
.password-field input {
  width: 100%;

  padding:
    16px 18px;

  background:
    #fafafa;

  color:
    #0a0a4f;

  border:
    1px solid #e5e5eb;

  border-radius:
    12px;

  font-family:
    inherit;

  font-size:
    15px;

  outline:
    none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.login-form input::placeholder {
  color:
    #9a9aa5;
}

.login-form input[type="email"]:focus,
.password-field input:focus {
  background:
    #ffffff;

  border-color:
    #f7dd83;

  box-shadow:
    0 0 0 4px
    rgba(247, 221, 131, 0.2);
}


/* =========================================================
   PASSWORD FIELD
========================================================= */

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  /*
   * Extra space prevents password text
   * from running underneath Show / Hide.
   */
  padding-right: 72px;
}

.password-toggle {
  position: absolute;

  top: 50%;
  right: 16px;

  transform:
    translateY(-50%);

  padding: 4px;

  border: none;
  outline: none;

  background:
    transparent;

  color:
    #1f1f57;

  font-family:
    inherit;

  font-size:
    12px;

  font-weight:
    700;

  cursor:
    pointer;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.password-toggle:hover {
  color:
    #d99a13;
}

.password-toggle:focus-visible {
  border-radius:
    4px;

  outline:
    2px solid
    rgba(217, 154, 19, 0.45);

  outline-offset:
    2px;
}

.password-toggle:disabled {
  cursor:
    not-allowed;

  opacity:
    0.5;
}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  margin-top:
    2px;
}

.remember-me {
  display: flex;
  align-items: center;

  gap: 8px;

  color:
    #696976;

  font-size:
    13px;

  cursor:
    pointer;

  user-select:
    none;
}

.remember-me input {
  width: 15px;
  height: 15px;

  margin: 0;

  accent-color:
    #f7dd83;

  cursor:
    pointer;
}

.forgot-link {
  color:
    #0a0a4f;

  font-size:
    13px;

  font-weight:
    600;

  text-decoration:
    none;

  transition:
    color 0.25s ease;
}

.forgot-link:hover {
  color:
    #b69432;
}


/* =========================================================
   FORM MESSAGE
========================================================= */

.form-message {
  min-height: 0;
  margin: 0;

  font-size: 13px;
  line-height: 1.5;

  text-align: center;
}

.form-message:empty {
  display: none;
}

.form-message.error {
  color:
    #c93a2e;
}

.form-message.success {
  color:
    #27834a;
}


/* =========================================================
   SIGN IN BUTTON
========================================================= */

.signin-btn {
  width: 100%;

  margin-top:
    6px;

  padding:
    15px 24px;

  background:
    #f7dd83;

  color:
    #0a0a4f;

  border:
    none;

  border-radius:
    12px;

  font-family:
    inherit;

  font-size:
    15px;

  font-weight:
    700;

  cursor:
    pointer;

  box-shadow:
    0 10px 24px
    rgba(247, 221, 131, 0.24);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.signin-btn:hover {
  transform:
    translateY(-2px);

  background:
    #f4d56c;

  box-shadow:
    0 14px 30px
    rgba(247, 221, 131, 0.3);
}

.signin-btn:active {
  transform:
    translateY(0);
}

.signin-btn:disabled {
  cursor:
    not-allowed;

  opacity:
    0.65;

  transform:
    none;
}


/* =========================================================
   ADMIN LOGIN
========================================================= */

.admin-login-text {
  position:
    relative;

  margin:
    30px 0 0;

  padding-top:
    24px;

  color:
    #858590;

  font-size:
    13px;

  text-align:
    center;
}

.admin-login-text::before {
  content:
    "";

  position:
    absolute;

  top:
    0;

  left:
    50%;

  width:
    68px;

  height:
    1px;

  background:
    #e8e8ed;

  transform:
    translateX(-50%);
}

.admin-login-text a {
  margin-left:
    4px;

  color:
    #0a0a4f;

  font-weight:
    700;

  text-decoration:
    none;

  transition:
    color 0.25s ease;
}

.admin-login-text a:hover {
  color:
    #b69432;
}


/* =========================================================
   SECURE TEXT
========================================================= */

.secure-text {
  margin:
    18px 0 0;

  color:
    #9a9aa5;

  font-size:
    12px;

  line-height:
    1.6;

  text-align:
    center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 560px) {

  .login-page {
    padding:
      24px 16px;
  }

  .login-card {
    padding:
      38px 24px 28px;

    border-radius:
      20px;
  }

  .login-brand {
    margin-bottom:
      26px;
  }

  .login-brand img {
    width:
      52px;

    height:
      52px;
  }

  .login-brand span {
    font-size:
      21px;
  }

  .login-card h1 {
    font-size:
      35px;
  }

  .login-subtitle {
    margin-bottom:
      26px;

    font-size:
      14px;
  }

  .login-options {
    align-items:
      flex-start;
  }

  .remember-me,
  .forgot-link {
    font-size:
      12px;
  }
}


@media (max-width: 390px) {

  .login-options {
    flex-direction:
      column;

    gap:
      12px;
  }
}