/* =========================================
   PDFLooks - Login Page CSS
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
  background-color: #fffafa;
}


/* =========================================
   LOGIN PAGE
========================================= */

.login-page {
  min-height: 100vh;
  width: 100%;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 50px 20px;

  overflow: hidden;

  background-color: #fffafa;

  background-image:
    radial-gradient(
      circle at 1px 1px,
      rgba(237, 28, 36, 0.10) 2px,
      transparent 2px
    );

  background-size: 18px 18px;
}


/* =========================================
   DECORATIVE BACKGROUND SHAPES
========================================= */

.bg-shape {
  position: absolute;

  width: 390px;
  height: 390px;

  border-radius: 50%;

  z-index: 0;

  pointer-events: none;
}


/* =========================================
   TOP-RIGHT RED SHAPE
========================================= */

.bg-shape-top {
  top: -270px;
  right: -110px;

  background: #ed1c24;
}


/* =========================================
   BOTTOM-LEFT BLUE SHAPE
========================================= */

.bg-shape-bottom {
  bottom: -270px;
  left: -120px;

  background: #2563eb;
}


/* =========================================
   LOGIN WRAPPER
========================================= */

.login-wrapper {
  width: 100%;
  max-width: 800px;

  position: relative;

  z-index: 2;
}


/* =========================================
   LOGIN CARD
========================================= */

.login-card {
  width: 100%;

  background: #ffffff;

  border-radius: 30px;

  padding: 55px 65px;

  border: 1px solid rgba(0, 0, 0, 0.03);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08);
}


/* =========================================
   LOGO
========================================= */

.login-logo {
  width: 100%;

  display: flex;

  justify-content: center;

  align-items: center;

  margin-bottom: 35px;
}

.login-logo a {
  display: inline-flex;

  text-decoration: none;
}

.login-logo img {
  width: 260px;

  max-width: 100%;

  height: auto;

  display: block;
}


/* =========================================
   LOGIN HEADING
========================================= */

.login-heading {
  text-align: center;

  margin-bottom: 40px;
}

.login-heading h1 {
  margin: 0 0 14px;

  font-size: 46px;

  line-height: 1.2;

  font-weight: 800;

  color: #111827;
}

.login-heading p {
  margin: 0;

  font-size: 20px;

  line-height: 1.5;

  color: #6b7280;
}


/* =========================================
   LOGIN FORM
========================================= */

.login-form {
  width: 100%;
}

.form-group {
  width: 100%;

  margin-bottom: 24px;
}

.form-group label {
  display: block;

  margin-bottom: 10px;

  font-size: 20px;

  line-height: 1.4;

  font-weight: 700;

  color: #111827;
}


/* =========================================
   INPUT WRAPPER
========================================= */

.input-wrapper {
  position: relative;

  width: 100%;
}


/* =========================================
   INPUT
========================================= */

.input-wrapper input {
  width: 100%;

  height: 70px;

  padding: 0 60px 0 76px;

  border: 1.5px solid #d7d7d7;

  border-radius: 13px;

  outline: none;

  background: #ffffff;

  color: #111827;

  font-family: inherit;

  font-size: 19px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.input-wrapper input::placeholder {
  color: #9ca3af;

  opacity: 1;
}

.input-wrapper input:hover {
  border-color: #c8c8c8;
}

.input-wrapper input:focus {
  border-color: #ed1c24;

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(237, 28, 36, 0.08);
}


/* =========================================
   INPUT ICON
========================================= */

.input-icon {
  position: absolute;

  left: 23px;
  top: 50%;

  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  color: #ed1c24;

  font-size: 25px;

  line-height: 1;

  pointer-events: none;

  z-index: 2;
}


/* =========================================
   PASSWORD TOGGLE
========================================= */

.password-toggle {
  position: absolute;

  right: 17px;
  top: 50%;

  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  border: none;

  outline: none;

  background: transparent;

  color: #ed1c24;

  font-size: 24px;

  cursor: pointer;

  border-radius: 50%;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.password-toggle:hover {
  background: #fff1f1;
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.94);
}


/* =========================================
   ERROR MESSAGE
========================================= */

.error-message {
  display: block;

  min-height: 18px;

  margin-top: 6px;

  color: #ed1c24;

  font-size: 14px;

  line-height: 1.3;
}


/* =========================================
   FORGOT PASSWORD
========================================= */

.forgot-row {
  width: 100%;

  display: flex;

  justify-content: flex-end;

  align-items: center;

  margin-top: -6px;

  margin-bottom: 28px;
}

.forgot-row a {
  color: #ed1c24;

  font-size: 18px;

  font-weight: 500;

  text-decoration: none;

  transition: color 0.2s ease;
}

.forgot-row a:hover {
  color: #c9151c;

  text-decoration: underline;
}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-btn {
  width: 100%;

  height: 72px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  border: none;

  border-radius: 12px;

  outline: none;

  background: #ed1c24;

  color: #ffffff;

  font-family: inherit;

  font-size: 22px;

  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 5px 15px rgba(237, 28, 36, 0.10);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-btn:hover {
  background: #d9161d;

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(237, 28, 36, 0.20);
}

.login-btn:active {
  transform: translateY(0);

  box-shadow:
    0 5px 12px rgba(237, 28, 36, 0.15);
}

.login-btn:disabled {
  opacity: 0.75;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}

.login-btn-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  font-size: 23px;
}


/* =========================================
   OR DIVIDER
========================================= */

.or-divider {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 18px;

  margin: 35px 0;
}

.or-divider span {
  flex: 1;

  height: 1px;

  background: #efcaca;
}

.or-divider strong {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #fff1f1;

  color: #ed1c24;

  font-size: 17px;

  font-weight: 700;
}


/* =========================================
   SOCIAL LOGIN
========================================= */

.social-login {
  width: 100%;

  display: flex;

  flex-direction: row;

  align-items: center;

  justify-content: center;

  gap: 18px;
}


/* =========================================
   SOCIAL BUTTON
========================================= */

.social-btn {
  position: relative;

  width: 90px;
  height: 64px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0;

  border: 1.5px solid #d9d9d9;

  border-radius: 12px;

  outline: none;

  background: #ffffff;

  color: #111827;

  font-family: inherit;

  font-size: 0;

  font-weight: 500;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-btn:hover {
  background: #fff8f8;

  border-color: #ed1c24;

  transform: translateY(-2px);

  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.08);
}

.social-btn:active {
  transform: translateY(0);
}


/* =========================================
   GOOGLE ICON
========================================= */

.google-icon {
  width: 44px;
  height: 44px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #ffffff;

  border: 1px solid #e5e7eb;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12);

  color: #4285f4;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 32px;

  font-weight: 700;

  line-height: 1;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.social-btn:hover .google-icon {
  transform: scale(1.08);

  border-color: #dbeafe;

  box-shadow:
    0 5px 14px rgba(66, 133, 244, 0.22);
}


/* =========================================
   FACEBOOK ICON
========================================= */

.facebook-icon {
  width: 44px;
  height: 44px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #1877f2;

  border: 2px solid #ffffff;

  box-shadow:
    0 3px 9px rgba(24, 119, 242, 0.28);

  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 31px;

  font-weight: 700;

  line-height: 1;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-btn:hover .facebook-icon {
  transform: scale(1.08);

  box-shadow:
    0 5px 15px rgba(24, 119, 242, 0.32);
}


/* =========================================
   SOCIAL BUTTON TEXT
   Hidden visually but kept in HTML
   for accessibility / JS compatibility
========================================= */

.social-btn > span:not(.google-icon):not(.facebook-icon) {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================================
   SIGN UP TEXT
========================================= */

.signup-text {
  width: 100%;

  margin-top: 35px;

  text-align: center;

  color: #6b7280;

  font-size: 19px;

  line-height: 1.5;
}

.signup-text a {
  margin-left: 5px;

  color: #ed1c24;

  font-weight: 600;

  text-decoration: none;

  transition: color 0.2s ease;
}

.signup-text a:hover {
  color: #c9151c;

  text-decoration: underline;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {

  .login-page {
    padding: 40px 18px;
  }

  .login-card {
    padding: 45px 40px;

    border-radius: 26px;
  }

  .login-heading h1 {
    font-size: 40px;
  }

  .login-heading p {
    font-size: 18px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .login-page {
    min-height: 100vh;

    padding: 25px 14px;
  }

  .login-card {
    padding: 35px 22px;

    border-radius: 22px;
  }

  .login-logo {
    margin-bottom: 28px;
  }

  .login-logo img {
    width: 210px;
  }

  .login-heading {
    margin-bottom: 30px;
  }

  .login-heading h1 {
    font-size: 32px;

    margin-bottom: 10px;
  }

  .login-heading p {
    font-size: 16px;
  }

  .form-group label {
    font-size: 18px;
  }

  .input-wrapper input {
    height: 62px;

    padding-left: 64px;

    font-size: 17px;
  }

  .input-icon {
    left: 19px;

    font-size: 23px;
  }

  .password-toggle {
    right: 12px;
  }

  .forgot-row {
    margin-bottom: 24px;
  }

  .forgot-row a {
    font-size: 16px;
  }

  .login-btn {
    height: 64px;

    font-size: 19px;
  }

  .or-divider {
    margin: 28px 0;
  }

  .or-divider strong {
    width: 46px;
    height: 46px;

    font-size: 15px;
  }


  /* ================================
     MOBILE SOCIAL BUTTONS
  ================================= */

  .social-login {
    gap: 14px;
  }

  .social-btn {
    width: 82px;

    height: 58px;

    border-radius: 11px;
  }

  .google-icon,
  .facebook-icon {
    width: 38px;
    height: 38px;
  }

  .google-icon {
    font-size: 28px;
  }

  .facebook-icon {
    font-size: 27px;
  }


  .signup-text {
    margin-top: 28px;

    font-size: 16px;
  }

  .bg-shape {
    width: 280px;
    height: 280px;
  }

  .bg-shape-top {
    top: -210px;
    right: -130px;

    background: #ed1c24;
  }

  .bg-shape-bottom {
    bottom: -210px;
    left: -130px;

    background: #2563eb;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

  .login-page {
    padding: 18px 10px;
  }

  .login-card {
    padding: 30px 17px;

    border-radius: 19px;
  }

  .login-logo img {
    width: 185px;
  }

  .login-heading h1 {
    font-size: 28px;
  }

  .login-heading p {
    font-size: 15px;
  }

  .form-group label {
    font-size: 17px;
  }

  .input-wrapper input {
    height: 58px;

    font-size: 16px;

    padding-left: 58px;
  }

  .input-icon {
    left: 16px;

    font-size: 21px;
  }

  .login-btn {
    height: 60px;

    font-size: 18px;
  }


  /* ================================
     SMALL MOBILE SOCIAL BUTTONS
  ================================= */

  .social-login {
    gap: 12px;
  }

  .social-btn {
    width: 76px;

    height: 54px;

    border-radius: 10px;
  }

  .google-icon,
  .facebook-icon {
    width: 34px;
    height: 34px;
  }

  .google-icon {
    font-size: 25px;
  }

  .facebook-icon {
    font-size: 24px;
  }

}


/* =====================================================
   DESKTOP - FULL CARD FIT IN ONE SCREEN
===================================================== */

@media (min-width: 801px) {

  html,
  body {
    width: 100%;
    min-height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
  }

  .login-page {
    width: 100%;
    height: 100vh;
    min-height: 100vh;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
  }

  .login-wrapper {
    width: 100%;
    max-width: 900px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;
  }

  .login-card {
    width: 820px;
    max-width: none;

    box-sizing: border-box;

    max-height: none;
    height: auto;

    overflow: visible;

    padding: 42px 60px 38px;

    border-radius: 30px;
  }

}


/* =====================================================
   NORMAL LAPTOP
===================================================== */

@media (min-width: 801px) and (max-height: 800px) {

  .login-card {
    zoom: 0.68;
  }

}


/* =====================================================
   1280 x 720 / SMALL LAPTOP
===================================================== */

@media (min-width: 801px) and (max-height: 740px) {

  .login-card {
    zoom: 0.62;
  }

}


/* =====================================================
   VERY SHORT LAPTOP
===================================================== */

@media (min-width: 801px) and (max-height: 680px) {

  .login-card {
    zoom: 0.56;
  }

}


/* =====================================================
   LARGE LAPTOP / DESKTOP
===================================================== */

@media (min-width: 801px) and (min-height: 801px) {

  .login-card {
    zoom: 0.78;
  }

}


/* =====================================================
   BIG DESKTOP
===================================================== */

@media (min-width: 1400px) and (min-height: 900px) {

  .login-card {
    zoom: 0.85;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-page {
    width: 100%;
    min-height: 100vh;
    height: auto;

    padding: 25px 14px 35px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    overflow: visible;
  }

  .login-wrapper {
    width: 100%;
    max-width: 600px;

    padding: 0;
    margin: 0;
  }

  .login-card {
    width: 100%;

    max-width: 600px;

    height: auto;
    max-height: none;

    overflow: visible;

    zoom: 1;

    padding: 30px 22px 30px;

    border-radius: 22px;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

  .login-page {
    padding: 15px 10px 25px;
  }

  .login-card {
    padding: 25px 16px 28px;

    border-radius: 20px;
  }

}