/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
}

/* PAGE: split screen */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

/* LEFT: dark blurred visual */
.login-visual {
  flex: 1 1 50%;
  position: relative;
  background-image: url('../images/login-bg.png');
  background-size: cover;
  background-position: center;
  background-color: #000000;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(0,0,0,0.85) 10%, rgba(27,27,27,0.55) 42%, rgba(0,0,0,0.85) 65%, rgba(27,27,27,0.85) 80%, rgba(0,0,0,0.9) 97%);
}

.login-wordmark {
  position: absolute;
  left: 40px;
  bottom: 40px;
  height: 38px;
  width: auto;
  z-index: 1;
}

/* RIGHT: white form panel */
.login-panel {
  flex: 1 1 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 616px;
}

/* TITLE */
.login-card h1 {
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 20px;
  color: #565656;
  margin-bottom: 30px;
}

/* FORM */
.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.form-field input {
  width: 100%;
  height: 56px;
  border: 1px solid #565656;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  padding: 0 16px;
  outline: none;
  transition: 0.2s;
}

.form-field input::placeholder {
  color: rgba(86, 86, 86, 0.8);
}

.form-field input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 22px;
  font-size: 16px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #000000;
}

.remember input {
  width: 19px;
  height: 19px;
  accent-color: #000000;
}

.form-row a,
.signup-text a {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.form-row a:hover,
.signup-text a:hover {
  text-decoration: underline;
}

/* BUTTON */
.login-button {
  width: 100%;
  height: 70px;
  border: none;
  border-radius: 15px;
  background: #000000;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 8px;
}

.login-button:hover {
  background: #1b1b1b;
}

.signup-text {
  text-align: center;
  margin-top: 18px;
  font-size: 18px;
  color: #565656;
}

.signup-text a {
  color: #000000;
  font-weight: 600;
}

/* ERROR ALERT */
.alert-error {
  background: #ffe5e5;
  color: #b91c1c;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* SUCCESS ALERT */
.alert-success {
  background: #e5ffe9;
  color: #15803d;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* RESPONSIVE: stack on smaller screens */
@media (max-width: 900px) {
  .login-page {
    flex-direction: column;
  }

  .login-visual {
    flex: 0 0 200px;
  }

  .login-panel {
    padding: 24px;
  }
}

/* RESET PASSWORD PAGES */
.reset-icon {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
}

.reset-icon-circle,
.reset-icon-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.reset-icon-circle {
  width: 128px;
  height: 128px;
}

.reset-icon-lock {
  width: 42px;
  height: auto;
}

.reset-title {
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  text-align: center;
}

.reset-subtitle {
  margin-bottom: 30px;
  text-align: center;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 50px;
}

.input-check-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translate(0, -50%);
  width: 24px;
  height: 24px;
}
