*{box-sizing:border-box} :root{--forest:#173d32;--forest-deep:#102d25;--ink:#24352e;--muted:#78847d;--line:#e3e9e4;--paper:#fbfcfa;--accent:#a9c69b}
html,body{min-height:100%}body{margin:0;background:#eef2ed;color:var(--ink);font-family:"DM Sans",Arial,sans-serif;-webkit-font-smoothing:antialiased}
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.92fr) minmax(460px,1.08fr);max-width:1600px;margin:0 auto;background:var(--paper);box-shadow:0 20px 70px rgba(26,52,40,.08)}
.brand-panel{position:relative;overflow:hidden;min-height:720px;padding:54px 7.2%;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:radial-gradient(circle at 88% 78%,rgba(130,164,119,.24),transparent 32%),linear-gradient(145deg,#214d3e 0%,var(--forest) 54%,var(--forest-deep) 100%)}
.brand,.mobile-brand{display:flex;align-items:center;gap:13px;font-family:"Playfair Display",Georgia,serif;font-size:25px;font-weight:600;letter-spacing:-.5px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;color:var(--accent);font-size:36px}
.brand-copy{position:relative;z-index:1;max-width:480px;margin-top:-20px}.eyebrow{margin:0 0 18px;color:#a9c69b;font-size:10px;font-weight:700;letter-spacing:2.3px}h1{margin:0;font-family:"Playfair Display",Georgia,serif;font-size:clamp(48px,5.4vw,76px);line-height:1.08;letter-spacing:-1.7px;font-weight:600}h1 em{color:#b7d0a9}.brand-description{max-width:360px;margin:25px 0 0;color:rgba(255,255,255,.73);font-size:15px;line-height:1.8}
.brand-footer{position:relative;z-index:1;display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.62);font-size:12px}.status-dot{width:7px;height:7px;border-radius:50%;background:#a9c69b;box-shadow:0 0 0 4px rgba(169,198,155,.13)}.decor{position:absolute;border:1px solid rgba(201,222,190,.11);border-radius:50%;pointer-events:none}.decor-one{width:490px;height:490px;right:-245px;bottom:6%}.decor-two{width:340px;height:340px;right:-170px;bottom:16%}
.form-panel{min-height:720px;display:flex;flex-direction:column;justify-content:center;padding:70px clamp(42px,8vw,125px) 26px}.form-wrap{width:100%;max-width:420px;margin:auto}.form-heading{margin-bottom:38px}.form-heading .eyebrow{color:#6c9872;margin-bottom:12px}h2{margin:0;color:#253a30;font-family:"Playfair Display",Georgia,serif;font-size:34px;font-weight:600;letter-spacing:-.7px}.form-heading>p:last-child{margin:11px 0 0;color:var(--muted);font-size:14px;line-height:1.6}
.login-form{display:flex;flex-direction:column}.login-form label{margin:0 0 9px;color:#3e5047;font-size:12px;font-weight:700}.input-wrap{height:54px;display:flex;align-items:center;gap:12px;padding:0 15px;margin-bottom:24px;border:1px solid var(--line);border-radius:8px;background:#fff;transition:border-color .2s,box-shadow .2s}.input-wrap:focus-within{border-color:#83a887;box-shadow:0 0 0 3px rgba(104,151,111,.11)}.field-icon{color:#8b9a90;font-size:17px}.input-wrap input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:13px}.input-wrap input::placeholder{color:#a8b1aa}.password-label{display:flex;align-items:center;justify-content:space-between}.forgot-link{margin-bottom:9px;color:#63876a;text-decoration:none;font-size:11px;font-weight:600}.forgot-link:hover{text-decoration:underline}.toggle-password{width:28px;height:28px;flex:0 0 auto;border:0;background:transparent;color:#87968c;cursor:pointer;font-size:17px}
.submit-button{height:54px;display:flex;align-items:center;justify-content:center;gap:13px;margin-top:5px;border:0;border-radius:8px;background:var(--forest);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s}.submit-button:hover{background:#245442;box-shadow:0 8px 18px rgba(23,61,50,.16);transform:translateY(-1px)}.submit-button span{font-size:18px}.secure-note{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:27px;color:#8a958e;font-size:10px}.secure-note span{color:#83a887;font-size:17px}.form-footer{width:100%;max-width:420px;display:flex;justify-content:space-between;gap:14px;margin:35px auto 0;color:#a0aaa2;font-size:10px}.mobile-brand{display:none}.alert{padding:12px 14px;margin:-17px 0 22px;border-radius:7px;font-size:12px}.alert-error,.alert-danger{color:#8e3434;background:#fff0ef;border:1px solid #f2d5d2}.alert-success{color:#326544;background:#edf7ef;border:1px solid #d2e8d6}
@media(max-width:900px){.login-shell{grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr)}.brand-panel{padding:42px 8%}.form-panel{padding-left:48px;padding-right:48px}}
@media(max-width:700px){body{background:var(--paper)}.login-shell{display:block;min-height:100vh}.brand-panel{display:none}.form-panel{min-height:100vh;padding:35px 25px 22px}.form-wrap{max-width:430px}.mobile-brand{display:flex;margin-bottom:58px;color:var(--forest)}.mobile-brand .brand-mark{color:#6d966f}.form-heading{margin-bottom:32px}h2{font-size:31px}.form-footer{margin-top:42px;flex-wrap:wrap}}
@media(max-width:380px){.form-panel{padding-left:19px;padding-right:19px}.form-footer{font-size:9px}}

/* Logotipo oficial Terra Sabor */
.brand-logo {
  display: block;
  width: 205px;
  max-width: 100%;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}
.mobile-brand .brand-logo {
  width: 185px;
  height: 60px;
}


/* AJUSTE VISUAL: fundo branco e logotipo quadrado 1200x1200 */
:root {
  --forest: #24543f;
  --forest-deep: #24543f;
  --paper: #ffffff;
}
body, .login-shell, .form-panel { background: #ffffff; }
.login-shell { max-width: 1440px; box-shadow: none; }
.brand-panel {
  min-height: 100vh;
  color: #263a30;
  background: #ffffff;
  border-right: 1px solid #edf0ec;
}
.brand { color: #24543f; }
.brand-logo {
  display: block;
  width: 132px;
  height: 132px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.brand-copy .eyebrow { color: #78947b; }
.brand-copy h1 { color: #263a30; }
.brand-copy h1 em { color: #527b5b; }
.brand-description { color: #748078; }
.brand-footer { color: #7e8981; }
.status-dot {
  background: #6e9a70;
  box-shadow: 0 0 0 4px rgba(110,154,112,.12);
}
.decor { border-color: rgba(80,120,85,.08); }
.mobile-brand { color: #24543f; }
.mobile-brand .brand-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.submit-button { background: #24543f; }
.submit-button:hover { background: #32684d; }
@media (max-width: 700px) {
  .brand-panel { display: none; }
  .form-panel { background: #ffffff; }
  .mobile-brand { justify-content: center; margin-bottom: 42px; }
  .mobile-brand .brand-logo { width: 116px; height: 116px; }
}


/* LOGOTIPO EM DOBRO — MANTENDO PROPORÇÃO E RESPONSIVIDADE */
.brand-panel .brand-logo {
  width: 264px;
  height: 264px;
  max-width: min(100%, 264px);
  object-fit: contain;
}
.mobile-brand .brand-logo {
  width: 224px;
  height: 224px;
  max-width: min(100%, 224px);
  object-fit: contain;
}
@media (max-width: 900px) and (min-width: 701px) {
  .brand-panel .brand-logo {
    width: 220px;
    height: 220px;
    max-width: min(100%, 220px);
  }
}
@media (max-width: 700px) {
  .mobile-brand {
    justify-content: center;
    margin-bottom: 34px;
  }
  .mobile-brand .brand-logo {
    width: clamp(150px, 58vw, 224px);
    height: clamp(150px, 58vw, 224px);
    max-width: 100%;
  }
}
@media (max-width: 360px) {
  .mobile-brand .brand-logo {
    width: 150px;
    height: 150px;
  }
}

/* Integração Bootstrap 5.3: ajustes específicos do layout aprovado */
.input-wrap .form-control {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.input-wrap .form-control:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.input-wrap .form-control:focus-visible { outline: 0; }
.submit-button.btn {
  --bs-btn-bg: var(--forest);
  --bs-btn-border-color: var(--forest);
  --bs-btn-hover-bg: #32684d;
  --bs-btn-hover-border-color: #32684d;
  --bs-btn-active-bg: #1d4636;
  --bs-btn-active-border-color: #1d4636;
  border-radius: 8px;
  font-family: inherit;
}
/* Evita rolagem horizontal na tela de login */
html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

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

.login-container,
.login-card,
.login-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.input-wrap {
    width: 100%;
    min-width: 0;
}

.input-wrap .form-control {
    min-width: 0;
}

/* Ajuste da altura da tela de login */
html,
body {
    margin: 0;
    min-height: 100%;
}

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

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

/* Ajustes para telas menores */
@media (max-width: 700px) {
    .login-shell {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .form-panel {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .mobile-brand {
        margin-bottom: 16px;
    }

    .mobile-brand .brand-logo {
        width: 140px;
        height: 140px;
    }

    .form-heading {
        margin-bottom: 20px;
    }

    .form-footer {
        margin-top: 20px;
    }
}