:root {
  --navy: #151A21;
  --navy-light: #1E5B66;
  --cyan: #C9753D;
  --text: #20252C;
  --muted: #72777E;
  --border: #D9DEE3;
  --background: #F5F3EE;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

.login-layout {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 100vh;
  min-height: 100dvh;
}

.brand-panel {
  background: linear-gradient(145deg, #151A21, #123a5e);
  color: white;
  padding: 48px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(0, 200, 232, .15);
  border-radius: 50%;
  right: -180px;
  bottom: -130px;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: rgba(0, 200, 232, .12);
  border: 1px solid rgba(0, 200, 232, .5);
  border-radius: 14px;
  font-size: 29px;
}

.brand-icon span,
.brand small,
.mobile-brand span {
  color: var(--cyan);
}

.brand small {
  font-size: 12px;
  letter-spacing: 1px;
}

.eyebrow,
.welcome-label {
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
}

.brand-content h1 {
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 22px 0;
}

.brand-content h1 em {
  color: var(--cyan);
  font-style: normal;
}

.brand-content p {
  max-width: 420px;
  line-height: 1.8;
  color: #c2d3e2;
}

.features {
  margin-top: 35px;
  display: grid;
  gap: 15px;
  color: #deebf4;
  font-size: 14px;
}

.brand-footer,
.login-bottom {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: .6;
}

.login-panel {
  padding: 45px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.login-card h2 {
  font-size: 34px;
  margin: 15px 0 8px;
  letter-spacing: -1px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 38px;
}

.login-card label {
  display: block;
  margin: 20px 0 9px;
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: white;
  color: var(--text);
  outline: none;
}

.login-card input:focus {
  border-color: #C9753D;
  box-shadow: 0 0 0 3px rgba(0, 200, 232, .12);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 90px;
}

.password-wrapper button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #A85C2B;
  font-weight: 700;
  cursor: pointer;
  padding: 10px;
}

.login-button {
  width: 100%;
  padding: 17px;
  margin-top: 24px;
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.login-button:hover {
  background: #A85C2B;
  transform: translateY(-1px);
}

.login-button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

#login-error {
  color: #be2638;
  font-size: 13px;
  margin-top: 14px;
}

#login-error:empty {
  display: none;
}

.login-help {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}

.login-bottom {
  position: absolute;
  bottom: 20px;
  color: #687f94;
}

.mobile-brand {
  display: none;
}

@media (max-width: 800px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 30px 24px 65px;
  }

  .mobile-brand {
    display: block;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 45px;
  }

  .login-card h2 {
    font-size: 29px;
  }
}

/* CONFEXIS — IDENTIDADE INDUSTRIAL PREMIUM */

.brand-panel {
  background:
    linear-gradient(115deg, rgba(15, 20, 25, .97),
                           rgba(24, 36, 42, .88)),
    #151A21;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 45px,
    rgba(201, 117, 61, .035) 46px,
    transparent 47px
  );
  pointer-events: none;
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand-icon {
  background: rgba(201, 117, 61, .1);
  border-color: #C9753D;
  color: #C9753D;
}

.brand-content h1 em {
  color: #E58A50;
}

.eyebrow,
.welcome-label {
  color: #C9753D;
}

.features {
  border-left: 2px solid #C9753D;
  padding-left: 22px;
}

.login-panel {
  background: #F5F3EE;
}

.login-card {
  background: #FFFFFF;
  border: 1px solid #E9E4DF;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 24px 65px rgba(21, 26, 33, .08);
}

.login-button {
  background: linear-gradient(135deg, #D77A3D, #AD5428);
  box-shadow: 0 8px 18px rgba(173, 84, 40, .18);
}

.login-button:hover {
  background: linear-gradient(135deg, #E38A49, #B75F30);
}

.login-card input:focus {
  border-color: #C9753D;
  box-shadow: 0 0 0 3px rgba(201, 117, 61, .12);
}

@media (max-width: 800px) {
  .login-card {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .login-panel {
    background: #F5F3EE;
  }
}

/* Icone da identidade textil */
.brand-icon svg {
  width: 30px;
  height: 30px;
  color: #C9753D;
}

.brand-icon {
  flex-shrink: 0;
}

.brand-content h1 {
  letter-spacing: -1.7px;
}

.login-card {
  position: relative;
}
