/* Waste360 — Login page */

:root {
  --bg: #0b0f19;
  --bg-deep: #08090c;
  --surface: #151b28;
  --surface-2: rgba(76, 76, 76, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f2f3f5;
  --text-soft: #878787;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.35);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(8, 9, 12, 0.92) 0%, rgba(8, 9, 12, 0.72) 40%, rgba(8, 9, 12, 0.85) 100%),
    url('../assets/bg.jpg') center / cover no-repeat;
}

/* ===== Left hero ===== */
.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 50px;
  padding: 36px 44px 40px;
  overflow: hidden;
  background: transparent;
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-hero-copy {
  max-width: 460px;
  margin: 0;
}

.login-hero-copy h1 {
  font-size: clamp(30px, 4.6vw, 30px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.login-hero-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  max-width: 340px;
}

.login-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 128px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: var(--text);
  text-align: left;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.login-role:hover {
  background: rgba(8, 9, 12, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

.login-role.is-active {
  background: rgb(191 191 191 / 17%);
  border-color: rgb(255 255 255 / 15%);
  color: #ffffff;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transform: translateY(-2px);
}

.login-role-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.login-role.is-active .login-role-num {
  background: #11b981;
  color: #fff;
}

.login-role-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.login-role-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}

.login-role-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-role-body strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.login-role-body em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.login-role.is-active .login-role-body em {
  color: rgb(255 255 255 / 55%);
}

/* ===== Right panel ===== */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  /* background: transparent;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%); */
}

.login-panel-inner {
  width: 100%;
  max-width: 380px;
}

.login-panel-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.login-panel-logo img {
  width: 52px;
  height: 52px;
}

.login-panel-head {
  text-align: center;
  margin-bottom: 28px;
}

.login-panel-head h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login-panel-head p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-row[hidden],
.login-row--register[hidden] {
  display: none;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.login-field input::placeholder {
  color: var(--text-faint);
}

.login-field input:focus {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.06);
}

.login-password {
  position: relative;
}

.login-password input {
  padding-right: 42px;
}

.login-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
}

.login-eye:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.login-hint {
  font-size: 11px;
  color: var(--text-faint);
}

.login-submit {
  margin-top: 8px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 20%);
  background: rgb(255 255 255 / 20%);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition);
}

.login-submit:hover {
  background: transparent;
  border-color: #11b981;
}

.login-submit:active {
  transform: translateY(0);
}

.login-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.login-switch button {
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-underline-offset: 3px;
}

.login-switch button:hover {
  color: var(--green);
}

@media (max-width: 960px) {
  body {
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }

  .login-hero {
    min-height: 52vh;
    padding: 28px 24px 32px;
  }

  .login-hero-copy {
    margin: 0;
  }

  .login-hero-copy h1 {
    font-size: 34px;
  }

  .login-roles {
    grid-template-columns: 1fr;
  }

  .login-role {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }

  .login-panel {
    padding: 36px 24px 48px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}
