/* GRID LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}

.brand-logo {
  /* padding: 1.25rem; */
  /* padding: 1rem; */
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
}
.brand-logo a {
  /* padding: 0.5rem 1rem; */
  padding: 0.25rem 1rem;
}

/* LEFT IMAGE PANEL */
.brand-panel {
  position: relative;
  /* background: url("/assets/login-bg.avif") center / cover no-repeat; */
}

@media (max-width: 520px) {
  .brand-panel {
    display: none;
  }
}

/* DARK OVERLAY */
.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.brand-content {
  position: relative;
  z-index: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 3rem;
  max-width: 460px;
}

.brand-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.brand-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* RIGHT FORM PANEL */
.form-panel {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
}

/* FORM CARD */
.app-login {
  width: 100%;
  max-width: 24rem;
  background: #ffffff;
  /* padding: 2.25rem; */
  margin: 0 auto;
  /* border-radius: 12px; */
  /* box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08); */
}

h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
}

/* INPUTS */
input {
  width: 100%;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6b7280;
}

/* BUTTON */
button {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1e40af;
}

hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

a {
  display: block;
  text-align: center;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.footer {
  padding-top: 5rem;
  width: 100%;
}

.footer-text {
  padding: 1rem;
  text-align: center;
}

.footer-text p {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #787878;
  display: flex;
  justify-content: center;
  gap: 0.2rem;
}

.footer-text a {
  color: #080808;
  text-underline-offset: 2px;
  text-decoration-line: underline;
}

/* ALERTS */
.error {
  max-width: 420px;
  margin: 0 auto 1rem auto;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fee;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  text-align: center;
}

.error.positive {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

/* MOBILE */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
  }
}
