/* Dupak Workflow — glossy sign in v9 */

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: #18181b;
  background: #1a1a1f;
  overflow-x: hidden;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(196, 30, 30, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 85% 75%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    linear-gradient(155deg, #1e1e26 0%, #141418 45%, #1a1214 100%);
}

.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.login-page::before {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: rgba(196, 30, 30, 0.22);
}

.login-page::after {
  width: 320px;
  height: 320px;
  bottom: -60px;
  left: -40px;
  background: rgba(255, 255, 255, 0.04);
}

.login-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.login-header {
  padding: 40px 40px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
}

.login-header img {
  display: block;
  margin: 0 auto 22px;
  max-height: 68px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.login-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-header p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.login-form {
  padding: 28px 40px 32px;
}

.login-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-form input {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 12px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font: inherit;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-form input::placeholder { color: rgba(255, 255, 255, 0.3); }

.login-form input:focus {
  outline: none;
  border-color: rgba(228, 60, 60, 0.7);
  background: rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(196, 30, 30, 0.25);
}

.btn-login {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  min-height: 48px;
  border: 1px solid #7a1212;
  border-radius: 10px;
  background: linear-gradient(180deg, #e03030 0%, #c41e1e 45%, #9a1818 100%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(196, 30, 30, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 8px 24px rgba(196, 30, 30, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-login:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.alert {
  margin: 20px 40px 0;
  padding: 12px 14px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.alert-error { background: rgba(254, 226, 226, 0.15); border-color: rgba(252, 165, 165, 0.4); color: #fecaca; }
.alert-success { background: rgba(220, 252, 231, 0.12); border-color: rgba(134, 239, 172, 0.35); color: #bbf7d0; }

.login-alt-link {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
}

.login-alt-link a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 500;
}

.login-alt-link a:hover {
  color: #fff;
  text-decoration: underline;
}

.reset-link-box {
  margin: 0 40px 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(134, 239, 172, 0.35);
  background: rgba(220, 252, 231, 0.1);
}

.reset-link-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.reset-link-url {
  display: block;
  word-break: break-all;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  color: #bbf7d0;
  text-decoration: none;
}

.reset-link-url:hover { text-decoration: underline; }

.reset-link-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.login-footer {
  padding: 14px 40px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
  .login-panel { border-radius: 12px; }
  .login-form, .login-header, .login-footer, .alert {
    padding-left: 24px;
    padding-right: 24px;
  }
  .alert { margin-left: 24px; margin-right: 24px; }
}
