/* =========================================================
   RESUMERIZE LOGIN PAGE
   Clean White + Blue SaaS Theme
   ========================================================= */

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

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background: #f7faff;
}

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

  color: #172033;

  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(37, 99, 235, 0.08),
      transparent 42%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #f2f7ff 100%);

  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

/* =========================================================
   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;
}

/* =========================================================
   MAIN PAGE
   ========================================================= */

.auth-shell {
  position: relative;

  width: 100%;
  min-height: 100vh;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 42px 24px 30px;

  isolation: isolate;
}

/* =========================================================
   SUBTLE BACKGROUND
   ========================================================= */

.auth-shell::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: -2;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent 49.9%,
      rgba(37, 99, 235, 0.025) 50%,
      transparent 50.1%
    ),
    linear-gradient(
      0deg,
      transparent 49.9%,
      rgba(37, 99, 235, 0.02) 50%,
      transparent 50.1%
    );
}

/* Soft center glow */

.auth-shell::after {
  content: "";

  position: absolute;

  width: min(760px, 85vw);

  height: min(600px, 75vw);

  left: 50%;
  top: 45%;

  transform: translate(-50%, -50%);

  z-index: -3;

  pointer-events: none;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.075),
    transparent 68%
  );

  filter: blur(25px);
}

/* =========================================================
   DECORATIVE FRAME
   ========================================================= */

.tech-frame {
  position: absolute;

  inset: 0;

  pointer-events: none;

  overflow: hidden;

  z-index: -1;
}

.tech-corner,
.tech-line {
  position: absolute;

  display: block;

  border-color: rgba(37, 99, 235, 0.22);
}

.tech-corner {
  width: 125px;
  height: 70px;
}

/* Top left */

.tech-corner--tl {
  top: 0;
  left: 6%;

  border-top: 1px solid;
  border-left: 1px solid;
}

/* Top right */

.tech-corner--tr {
  top: 0;
  right: 6%;

  border-top: 1px solid;
  border-right: 1px solid;
}

/* Bottom left */

.tech-corner--bl {
  bottom: 2%;
  left: 7%;

  border-bottom: 1px solid;
  border-left: 1px solid;
}

/* Bottom right */

.tech-corner--br {
  bottom: 2%;
  right: 7%;

  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* Side lines */

.tech-line {
  top: 50%;

  width: 55px;
  height: 1px;

  background: rgba(37, 99, 235, 0.22);

  border: 0;
}

.tech-line--left {
  left: 0;
}

.tech-line--right {
  right: 0;
}

/* =========================================================
   MAIN CARD
   ========================================================= */

.auth-card {
  position: relative;

  display: flex;

  width: min(900px, 100%);

  min-height: 470px;

  overflow: hidden;

  border: 1px solid rgba(37, 99, 235, 0.17);

  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 24px 70px rgba(15, 23, 42, 0.1),
    0 10px 35px rgba(37, 99, 235, 0.08);
}

/* =========================================================
   LEFT LOGIN PANEL
   ========================================================= */

.auth-panel {
  position: relative;

  min-width: 0;
}

.auth-panel--form {
  z-index: 2;

  width: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
}

/* =========================================================
   RIGHT WELCOME PANEL
   ========================================================= */

.auth-panel--welcome {
  z-index: 1;

  width: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-left: -1px;

  background: linear-gradient(135deg, #f0f6ff 0%, #e7f0ff 50%, #deebff 100%);

  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

/* Diagonal divider */

.auth-panel--welcome::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: -1px;

  width: 1px;

  background: rgba(37, 99, 235, 0.13);

  transform: skewX(-10deg);

  transform-origin: top;
}

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

.form-content {
  width: min(310px, calc(100% - 70px));

  padding: 36px 0;
}

/* =========================================================
   BRAND
   ========================================================= */

.brand-mark {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 18px;

  color: #2563eb;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2.2px;
}

.brand-mark__dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #2563eb;

  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
}

/* =========================================================
   LOGIN TITLE
   ========================================================= */

.login-card-header {
  margin: 0 0 28px;
}

.login-card-header h1 {
  margin: 0;

  color: #172033;

  font-size: clamp(32px, 4vw, 40px);

  line-height: 1;

  font-weight: 700;

  letter-spacing: -1.3px;
}

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

.login-form {
  width: 100%;
}

.form-group {
  width: 100%;

  margin: 0 0 17px;
}

/* =========================================================
   INPUTS
   ========================================================= */

.form-group input {
  display: block;

  width: 100%;

  height: 53px;

  padding: 0 17px;

  border: 1px solid #d7e1ef;

  border-radius: 10px;

  outline: none;

  background: #f8fafc;

  color: #172033;

  font-size: 14px;

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

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:hover {
  border-color: #b6c7e2;

  background: #ffffff;
}

.form-group input:focus {
  border-color: #2563eb;

  background: #ffffff;

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

/* Chrome autofill */

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #172033;

  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
}

/* =========================================================
   PASSWORD / FORGOT PASSWORD
   ========================================================= */

.form-group--password {
  margin-bottom: 8px;
}

.password-tools {
  display: flex;

  justify-content: flex-end;

  min-height: 20px;

  margin-bottom: 16px;
}

.password-tools a {
  color: #2563eb;

  font-size: 12px;

  text-decoration: none;
}

.password-tools a:hover,
.password-tools a:focus-visible {
  color: #1d4ed8;

  text-decoration: underline;
}

/* =========================================================
   LOGIN BUTTON
   ========================================================= */

#loginButton {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  height: 52px;

  padding: 0 18px;

  border: 1px solid #2563eb;

  border-radius: 999px;

  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

  color: #ffffff;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);

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

#loginButton:hover {
  filter: brightness(1.05);

  box-shadow: 0 11px 27px rgba(37, 99, 235, 0.25);
}

#loginButton:active {
  transform: translateY(1px);
}

#loginButton:disabled {
  cursor: wait;

  opacity: 0.65;
}

/* =========================================================
   LOGIN MESSAGE
   ========================================================= */

.login-message {
  min-height: 20px;

  margin-top: 10px;

  color: #dc2626;

  font-size: 12px;

  line-height: 1.45;

  text-align: center;
}

/* =========================================================
   SIGN UP
   ========================================================= */

.signup-section {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 5px;

  margin-top: 19px;

  color: #64748b;

  font-size: 12px;

  line-height: 1.5;
}

.signup-section a {
  color: #2563eb;

  font-weight: 700;

  text-decoration: none;
}

.signup-section a:hover,
.signup-section a:focus-visible {
  color: #1d4ed8;

  text-decoration: underline;
}

/* =========================================================
   WELCOME PANEL
   ========================================================= */

.welcome-content {
  position: relative;

  z-index: 1;

  width: 72%;

  margin-left: 8%;

  text-align: center;

  transform: translateX(4%);
}

.welcome-eyebrow {
  margin: 0 0 14px;

  color: #64748b;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 3px;
}

.welcome-content h2 {
  margin: 0;

  color: #2563eb;

  font-size: clamp(32px, 4.2vw, 44px);

  line-height: 0.98;

  font-weight: 800;

  letter-spacing: -1.5px;
}

.welcome-copy {
  margin: 27px 0 0;

  color: #64748b;

  font-size: 14px;

  line-height: 1.55;
}

/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
  margin: 22px 0 0;

  color: #94a3b8;

  font-size: 11px;

  text-align: center;
}

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

@media (max-width: 760px) {
  .auth-shell {
    padding: 28px 16px;
  }

  .auth-card {
    min-height: auto;

    flex-direction: column;

    border-radius: 20px;
  }

  .auth-panel--form,
  .auth-panel--welcome {
    width: 100%;
  }

  .auth-panel--form {
    order: 1;
  }

  .auth-panel--welcome {
    order: 2;

    min-height: 190px;

    margin-left: 0;

    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
  }

  .form-content {
    width: min(420px, calc(100% - 48px));

    padding: 34px 0 28px;
  }

  .welcome-content {
    width: 100%;

    margin: 24px 0 0;

    transform: none;
  }

  .welcome-content h2 {
    font-size: 32px;
  }

  .welcome-copy {
    margin-top: 12px;
  }

  .tech-corner {
    width: 70px;
    height: 52px;
  }
}

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

@media (max-width: 420px) {
  .auth-shell {
    padding: 18px 12px 24px;
  }

  .auth-card {
    border-radius: 17px;
  }

  .form-content {
    width: calc(100% - 36px);

    padding: 28px 0 24px;
  }

  .login-card-header {
    margin-bottom: 23px;
  }

  .login-card-header h1 {
    font-size: 31px;
  }

  .form-group input {
    height: 50px;
  }

  #loginButton {
    height: 50px;
  }

  .signup-section {
    flex-wrap: wrap;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;
  }
}
