/*
 * GeOps v16.2 – Phase 1 rebrand
 * Sign-in and global application header.
 */

:root{
  --geops-brand:#718257;
  --geops-brand-dark:#4d603b;
  --geops-brand-soft:#edf2e7;
  --geops-border:#d9dfd2;
  --geops-text:#20261d;
  --geops-muted:#6c7467;
}

/* Login */
.geops-login-body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 50% 0%,rgba(113,130,87,.10),transparent 35%),
    #f8f7f2;
}

.geops-login-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 18px;
}

.geops-login-card{
  width:min(460px,100%);
  background:#fff;
  border:1px solid var(--geops-border);
  border-radius:24px;
  padding:34px 36px 30px;
  box-shadow:0 20px 55px rgba(35,42,28,.09);
}

.geops-login-brand{
  text-align:center;
  padding-bottom:25px;
  margin-bottom:24px;
  border-bottom:1px solid #e7ebe2;
}

.geops-login-brand img{
  display:block;
  width:min(285px,82%);
  height:auto;
  margin:0 auto 16px;
  object-fit:contain;
}

.geops-product-name{
  color:var(--geops-brand-dark);
  font-size:31px;
  line-height:1;
  font-weight:750;
  letter-spacing:-.035em;
}

.geops-product-tagline{
  margin-top:8px;
  color:var(--geops-muted);
  font-size:11px;
  font-weight:650;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.geops-login-copy{margin-bottom:20px}
.geops-login-copy h1{
  margin:0 0 5px;
  font-size:28px;
  color:var(--geops-brand-dark);
}
.geops-login-copy p{
  margin:0;
  color:var(--geops-muted);
  font-size:14px;
}

.geops-login-form{
  display:grid;
  gap:15px;
}

.geops-login-form label:not(.geops-trusted-device){
  display:grid;
  gap:6px;
}

.geops-login-form label > span{
  color:var(--geops-brand-dark);
  font-size:13px;
  font-weight:700;
}

.geops-login-form input{
  margin:0!important;
  min-height:49px;
  border-radius:13px;
}

.geops-trusted-device{
  display:flex!important;
  align-items:center!important;
  gap:9px;
  margin:1px 0 2px!important;
  cursor:pointer;
}

.geops-trusted-device input{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
}

.geops-trusted-device span{
  font-size:13px!important;
  color:var(--geops-text)!important;
  font-weight:500!important;
}

.geops-login-button{
  width:100%;
  min-height:49px;
  margin-top:3px;
  border-radius:13px;
  font-size:14px;
}

.geops-login-alert{margin:0 0 18px}

.geops-login-footer{
  margin-top:25px;
  padding-top:18px;
  border-top:1px solid #e7ebe2;
  text-align:center;
  color:#858c7e;
  font-size:11px;
  letter-spacing:.025em;
}

/* Global header */
.geops-topbar{
  display:grid!important;
  grid-template-columns:minmax(190px,225px) minmax(0,1fr);
  align-items:center!important;
  gap:24px!important;
  padding:16px 18px!important;
  min-height:112px;
}

.geops-header-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:7px;
  min-width:0;
  color:inherit;
  text-decoration:none;
}

.geops-header-logo{
  display:block;
  width:205px;
  max-width:100%;
  height:auto;
  object-fit:contain;
}

.geops-header-product{
  margin-left:2px;
  color:var(--geops-brand-dark);
  font-size:17px;
  line-height:1;
  font-weight:750;
  letter-spacing:-.02em;
}

.geops-header-right{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
}

.geops-nav{
  width:100%;
  justify-content:flex-end!important;
  align-items:center;
}

.geops-user-meta{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:7px;
  min-height:20px;
  color:var(--geops-muted);
  font-size:12px;
  line-height:1.2;
  text-align:right;
}

.geops-user-name{
  color:var(--geops-brand-dark);
  font-weight:700;
}

.geops-user-role{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 8px;
  border:1px solid #d9e1d0;
  border-radius:999px;
  background:#f3f6ef;
  color:#66745a;
  font-size:10px;
  font-weight:700;
  letter-spacing:.035em;
  text-transform:uppercase;
}

.geops-logout-link{
  background:#e8ede2!important;
}

@media(max-width:900px){
  .geops-topbar{
    grid-template-columns:1fr!important;
    gap:13px!important;
    min-height:0;
  }

  .geops-header-brand{
    width:100%;
    align-items:center;
  }

  .geops-header-logo{width:210px}
  .geops-header-product{margin-left:0}

  .geops-header-right{
    width:100%;
    align-items:stretch;
  }

  .geops-nav{
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    overflow-x:auto;
    padding-bottom:3px;
    scrollbar-width:thin;
  }

  .geops-user-meta{
    justify-content:flex-end;
    padding:1px 2px 0;
  }
}

@media(max-width:520px){
  .geops-login-shell{padding:14px 10px}
  .geops-login-card{
    padding:27px 20px 24px;
    border-radius:20px;
  }
  .geops-login-brand img{width:min(260px,86%)}
  .geops-product-name{font-size:28px}
  .geops-topbar{padding:13px!important}
  .geops-header-logo{width:185px}
  .geops-user-meta{font-size:11px}
}

/* GeOps v16.3 – new wordmark integration */
.geops-login-brand img{
  width:min(365px,92%);
  margin:0 auto 14px;
}
.geops-header-logo{
  width:220px;
}
.geops-header-brand{
  gap:0;
}
@media(max-width:900px){.geops-header-logo{width:220px}}
@media(max-width:520px){
  .geops-login-brand img{width:min(330px,94%)}
  .geops-header-logo{width:195px}
}
