/* ==============================
   RESET
============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ==============================
   BODY
============================== */

body {
  font-family: "Inter", sans-serif;

  min-height: 100vh;

  background:
    linear-gradient(
      135deg,
      #0d6efd 0%,
      #1976d2 45%,
      #42a5f5 100%
    );

  overflow-x: hidden;
}


/* ==============================
   BACKGROUND
============================== */

.background {
  min-height: 100vh;

  display: flex;

  justify-content: center;

  align-items: center;

  position: relative;

  padding: 30px;
}


/* ==============================
   DECORATIVE CIRCLES
============================== */

.circle {
  position: absolute;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  pointer-events: none;
}


.circle-one {
  width: 420px;
  height: 420px;

  top: -180px;
  right: -130px;
}


.circle-two {
  width: 300px;
  height: 300px;

  bottom: -130px;
  left: -120px;
}


/* ==============================
   LOGIN CARD
============================== */

.login-card {
  width: 100%;
  max-width: 440px;

  background: #ffffff;

  border-radius: 28px;

  padding: 42px 40px 30px;

  position: relative;

  z-index: 2;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.18);

  animation:
    cardAppear 0.6s ease;
}


@keyframes cardAppear {

  from {
    opacity: 0;

    transform:
      translateY(25px)
      scale(0.97);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

}


/* ==============================
   LOGO
============================== */

.logo-container {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  margin-bottom: 32px;
}


.logo-icon {
  width: 58px;
  height: 58px;

  border-radius: 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #0d6efd,
      #42a5f5
    );

  font-size: 29px;

  box-shadow:
    0 8px 20px
    rgba(13, 110, 253, 0.25);
}


.logo-text {
  text-align: left;
}


.logo-text h1 {
  font-size: 30px;

  font-weight: 800;

  letter-spacing: -1.5px;

  color: #172b4d;
}


.logo-text h1 span {
  color: #1976d2;
}


.logo-text p {
  margin-top: 2px;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 1px;

  color: #8a96a8;

  text-transform: uppercase;
}


/* ==============================
   WELCOME
============================== */

.welcome-section {
  text-align: center;

  margin-bottom: 30px;
}


.welcome-section h2 {
  color: #172b4d;

  font-size: 25px;

  font-weight: 700;

  margin-bottom: 8px;
}


.welcome-section p {
  color: #8994a6;

  font-size: 14px;

  line-height: 1.6;
}


/* ==============================
   INPUT GROUP
============================== */

.input-group {
  margin-bottom: 20px;
}


.input-group label {
  display: block;

  font-size: 13px;

  font-weight: 600;

  color: #344563;

  margin-bottom: 8px;
}


.input-wrapper {
  height: 54px;

  display: flex;

  align-items: center;

  position: relative;

  border: 1.5px solid #e2e8f0;

  border-radius: 14px;

  background: #f8fafc;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.input-wrapper:focus-within {
  background: #ffffff;

  border-color: #2196f3;

  box-shadow:
    0 0 0 4px
    rgba(33, 150, 243, 0.10);
}


.input-icon {
  width: 50px;

  text-align: center;

  font-size: 17px;

  color: #7d8da5;

  flex-shrink: 0;
}


.input-wrapper input {
  width: 100%;

  height: 100%;

  border: none;

  outline: none;

  background: transparent;

  color: #172b4d;

  font-family: "Inter", sans-serif;

  font-size: 14px;

  padding: 0 15px 0 0;
}


.input-wrapper input::placeholder {
  color: #a7b1c1;
}


/* ==============================
   PASSWORD TOGGLE
============================== */

.password-toggle {
  border: none;

  background: transparent;

  cursor: pointer;

  font-size: 17px;

  padding: 10px 15px;

  color: #7d8da5;

  transition: 0.2s;
}


.password-toggle:hover {
  color: #1976d2;
}


/* ==============================
   ERROR
============================== */

.error {
  min-height: 0;

  margin-bottom: 0;

  padding: 0;

  color: #d32f2f;

  background: #ffebee;

  border-radius: 10px;

  font-size: 12px;

  line-height: 1.5;

  opacity: 0;

  max-height: 0;

  overflow: hidden;

  transition:
    opacity 0.2s ease,
    max-height 0.2s ease,
    padding 0.2s ease,
    margin 0.2s ease;
}


.error.show {
  opacity: 1;

  max-height: 80px;

  padding: 11px 13px;

  margin-bottom: 16px;
}


/* ==============================
   LOGIN BUTTON
============================== */

.login-btn {
  width: 100%;

  height: 54px;

  border: none;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #1976d2,
      #2196f3
    );

  color: #ffffff;

  font-family: "Inter", sans-serif;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  box-shadow:
    0 8px 20px
    rgba(33, 150, 243, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}


.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);

  box-shadow:
    0 12px 25px
    rgba(33, 150, 243, 0.32);
}


.login-btn:active:not(:disabled) {
  transform: translateY(0);
}


.login-btn:disabled {
  cursor: not-allowed;

  opacity: 0.75;
}


/* ==============================
   LOADER
============================== */

.loader {
  width: 17px;
  height: 17px;

  border: 2px solid
    rgba(255, 255, 255, 0.4);

  border-top-color: #ffffff;

  border-radius: 50%;

  display: none;

  animation:
    spin 0.7s linear infinite;
}


.loader.show {
  display: inline-block;
}


@keyframes spin {

  to {
    transform: rotate(360deg);
  }

}


/* ==============================
   FOOTER
============================== */

.login-footer {
  text-align: center;

  margin-top: 30px;
}


.footer-line {
  width: 100%;

  height: 1px;

  background: #edf0f4;

  margin-bottom: 17px;
}


.login-footer p {
  color: #7c8899;

  font-size: 11px;

  font-weight: 500;

  margin-bottom: 5px;
}


.login-footer span {
  color: #b0b8c5;

  font-size: 10px;
}


/* ==============================
   MOBILE
============================== */

@media (max-width: 500px) {

  .background {
    padding: 20px;
  }


  .login-card {
    padding: 32px 25px 25px;

    border-radius: 23px;
  }


  .logo-container {
    margin-bottom: 27px;
  }


  .logo-icon {
    width: 52px;
    height: 52px;

    font-size: 25px;
  }


  .logo-text h1 {
    font-size: 27px;
  }


  .welcome-section h2 {
    font-size: 22px;
  }

}


/* ==============================
   SMALL PHONES
============================== */

@media (max-width: 360px) {

  .background {
    padding: 12px;
  }


  .login-card {
    padding: 28px 20px 22px;
  }

}