/**
 * EZ-SOLUTIONS — professional login (brand panel + clean form)
 */

:root {
  --ez-maroon: #9b1b2e;
  --ez-maroon-deep: #6e101c;
  --ez-maroon-bright: #c4233a;
  --ez-ink: #161616;
  --ez-muted: #71717a;
  --ez-border: #e8e0e2;
  --ez-surface: #ffffff;
  --ez-panel-bg: #f4f1f2;
}

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

html,
body.login-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  margin: 0;
  height: 100%;
  color: var(--ez-ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.login-page {
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ez-panel-bg) !important;
  background-image: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ez-login {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ========== Left: brand hero ========== */
.ez-login-brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 2.75rem 2.75rem;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.ez-login-brand-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ez-login-brand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: ezPhotoIn 1.1s ease-out both;
}

.ez-login-brand-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 6, 9, 0.88) 0%, rgba(110, 16, 28, 0.72) 48%, rgba(18, 6, 9, 0.55) 100%),
    linear-gradient(0deg, rgba(12, 4, 6, 0.75) 0%, transparent 45%);
  animation: ezScrimIn 0.9s ease-out both;
}

@keyframes ezPhotoIn {
  from { transform: scale(1.1); opacity: 0.6; }
  to { transform: scale(1.04); opacity: 1; }
}

@keyframes ezScrimIn {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.ez-login-brand-content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  animation: ezContentUp 0.65s ease-out 0.12s both;
}

@keyframes ezContentUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.ez-login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.ez-login-brand-mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex: 0 0 48px;
}

.ez-login-brand-mark-fallback {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex: 0 0 48px;
  background: radial-gradient(circle at 30% 30%, #c4233a, #6e101c);
}

.ez-login-brand-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fff;
}

.ez-login-brand-tag {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 220, 225, 0.88);
}

.ez-login-brand-headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #fff;
}

.ez-login-brand-copy {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  max-width: 24rem;
}

.ez-login-brand-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ez-login-brand-points li {
  margin: 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

/* ========== Right: form ========== */
.ez-login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--ez-panel-bg);
  overflow: auto;
}

.ez-login-panel {
  width: 100%;
  max-width: 22.5rem;
  animation: ezFormIn 0.55s ease-out 0.08s both;
}

@keyframes ezFormIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ez-login-panel-top {
  margin-bottom: 1.35rem;
}

.ez-login-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.ez-login-logo img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 8px;
  border: 1px solid var(--ez-border);
  background: #fff;
}

.ez-login-logo span {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--ez-ink);
  letter-spacing: 0.01em;
}

.ez-login-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ez-ink);
  line-height: 1.15;
}

.ez-login-lead {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ez-muted);
  line-height: 1.45;
}

.ez-login-form {
  margin: 0;
  max-width: none;
}

.ez-field {
  margin-bottom: 0.95rem;
}

.ez-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3f3f46;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ez-input-wrap {
  position: relative;
}

.ez-input-wrap .fa {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
  font-size: 0.88rem;
  pointer-events: none;
}

.ez-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.6rem 0 2.3rem;
  border: 1px solid var(--ez-border);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--ez-ink);
  background: var(--ez-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ez-input::placeholder {
  color: #a1a1aa;
  font-weight: 450;
}

.ez-input:hover {
  border-color: #d6c8cb;
}

.ez-input:focus {
  outline: none;
  border-color: var(--ez-maroon);
  box-shadow: 0 0 0 3px rgba(155, 27, 46, 0.14);
}

#togglePassword {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
  cursor: pointer;
  padding: 0.35rem;
  line-height: 1;
  z-index: 2;
}

#togglePassword:hover {
  color: var(--ez-maroon);
}

.ez-login-error {
  margin: -0.25rem 0 0.65rem;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 650;
}

.ez-btn-signin {
  width: 100%;
  height: 2.85rem;
  margin-top: 0.35rem;
  border: none;
  border-radius: 10px;
  background: var(--ez-maroon);
  color: #fff !important;
  font-size: 0.94rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 20px rgba(155, 27, 46, 0.22);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ez-btn-signin:hover {
  background: var(--ez-maroon-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 26px rgba(155, 27, 46, 0.28);
  color: #fff !important;
}

.ez-btn-signin:active {
  transform: translateY(0);
}

.ez-btn-signin:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 27, 46, 0.22), 0 10px 20px rgba(155, 27, 46, 0.22);
}

.copyrights {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ez-border);
  text-align: left;
  color: #a1a1aa;
  font-size: 0.75rem;
  line-height: 1.5;
}

.copyrights a {
  color: var(--ez-muted) !important;
  text-decoration: none;
  font-weight: 600;
}

.copyrights a:hover {
  color: var(--ez-maroon) !important;
}

.copyrights-sep {
  margin: 0 0.4rem;
  color: #d4d4d8;
}

.login-page .alert {
  border-radius: 10px;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
  body.login-body {
    overflow: auto;
  }

  .login-page,
  .ez-login {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }

  .ez-login {
    display: flex;
    flex-direction: column;
  }

  .ez-login-brand {
    flex: 0 0 auto;
    min-height: 42vh;
    padding: 1.75rem 1.5rem;
    align-items: flex-end;
  }

  .ez-login-brand-headline {
    font-size: 1.4rem;
  }

  .ez-login-brand-copy {
    display: none;
  }

  .ez-login-main {
    flex: 1 1 auto;
    padding: 1.75rem 1.25rem 2rem;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .ez-login-brand {
    min-height: 34vh;
    padding: 1.35rem 1.15rem;
  }

  .ez-login-brand-points {
    display: none;
  }

  .ez-login-brand-lockup {
    margin-bottom: 1rem;
  }

  .ez-login-main {
    padding: 1.5rem 1.15rem 2rem;
  }
}
