*{
  box-sizing:border-box;
}

html{
  font-size:100%;
}

body.eph-loginhub-page{
  margin:0;
  min-height:100vh;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#173b2a;
  background:
    radial-gradient(circle at 12% 8%, rgba(34,197,94,.12), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(22,92,52,.10), transparent 32%),
    linear-gradient(180deg,#f8fcf9 0%,#eef7f1 100%);
}

/* =========================================================
   LOGIN HUB
   ========================================================= */

.eph-loginhub{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px 22px;
}

.eph-loginhub-shell{
  width:min(1120px,100%);
}

.eph-loginhub-header{
  display:grid;
  grid-template-columns:180px minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  margin-bottom:28px;
}

.eph-loginhub-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.eph-loginhub-logo img{
  display:block;
  width:160px;
  max-width:160px;
  height:auto;
}

.eph-loginhub-kicker{
  color:#165c34;
  font-size:13px;
  font-weight:950;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.eph-loginhub-heading h1{
  margin:0;
  font-size:clamp(38px,5vw,62px);
  line-height:.95;
  letter-spacing:-.055em;
  color:#173b2a;
}

.eph-loginhub-heading p{
  margin:14px 0 0;
  color:#4a5f52;
  font-size:18px;
  font-weight:700;
}

.eph-loginhub-back,
.eph-loginhub-admin a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid #e7eee9;
  background:#ffffff;
  color:#173b2a;
  text-decoration:none;
  font-weight:950;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  white-space:nowrap;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    color .16s ease,
    background .16s ease;
}

.eph-loginhub-back:hover,
.eph-loginhub-admin a:hover{
  transform:translateY(-1px);
  border-color:#cde5d6;
  box-shadow:0 18px 38px rgba(15,23,42,.14);
  color:#165c34;
}

.eph-loginhub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

.eph-loginhub-card{
  position:relative;
  min-height:260px;
  display:grid;
  grid-template-columns:78px minmax(0,1fr);
  gap:22px;
  padding:30px;
  border-radius:32px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(20,92,51,.13);
  color:#173b2a;
  text-decoration:none;
  box-shadow:0 30px 76px rgba(15,23,42,.11);
  overflow:hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.eph-loginhub-card::after{
  content:"";
  position:absolute;
  right:-76px;
  bottom:-88px;
  width:230px;
  height:230px;
  border-radius:999px;
  background:rgba(22,92,52,.08);
  pointer-events:none;
}

.eph-loginhub-card:hover{
  transform:translateY(-4px);
  border-color:rgba(22,92,52,.30);
  box-shadow:0 38px 96px rgba(15,23,42,.17);
  background:#ffffff;
}

.eph-loginhub-card-main{
  background:
    radial-gradient(circle at 88% 88%, rgba(22,92,52,.15), transparent 40%),
    rgba(255,255,255,.96);
}

.eph-loginhub-icon{
  width:72px;
  height:72px;
  border-radius:23px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  border:1px solid #e7eee9;
  box-shadow:0 16px 34px rgba(15,23,42,.10);
  position:relative;
  z-index:1;
}

.eph-loginhub-icon svg{
  width:34px;
  height:34px;
  stroke:#165c34;
  fill:none;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.eph-loginhub-card-text{
  position:relative;
  z-index:1;
}

.eph-loginhub-card-text > span{
  display:block;
  margin:0 0 8px;
  color:#165c34;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.eph-loginhub-card-text strong{
  display:block;
  margin:0 0 12px;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.035em;
}

.eph-loginhub-card-text p{
  margin:0;
  color:#4a5f52;
  font-size:16px;
  line-height:1.55;
  font-weight:700;
}

.eph-loginhub-card-text em{
  display:inline-flex;
  margin-top:22px;
  padding:11px 17px;
  border-radius:999px;
  background:#165c34;
  color:#ffffff;
  font-size:14px;
  font-style:normal;
  font-weight:950;
}

.eph-loginhub-admin{
  margin-top:22px;
  padding:24px 26px;
  border-radius:28px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(20,92,51,.13);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  box-shadow:0 20px 50px rgba(15,23,42,.08);
}

.eph-loginhub-admin strong{
  display:block;
  font-size:20px;
  font-weight:950;
  color:#173b2a;
}

.eph-loginhub-admin p{
  margin:6px 0 0;
  color:#4a5f52;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}

.eph-loginhub-admin a{
  background:#165c34;
  color:#ffffff;
  border-color:#165c34;
}

.eph-loginhub-admin a:hover{
  background:#0f4826;
  color:#ffffff;
  border-color:#0f4826;
}

/* =========================================================
   CUSTOMER / COMPANY AUTH PAGES
   ========================================================= */

.eph-auth{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px 22px;
}

.eph-auth-shell{
  width:min(1040px,100%);
}

.eph-auth-header{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) auto;
  gap:26px;
  align-items:center;
  margin-bottom:24px;
}

.eph-auth-logo{
  display:flex;
  align-items:center;
  justify-content:center;
}

.eph-auth-logo img{
  width:138px;
  max-width:138px;
  height:auto;
  display:block;
}

.eph-auth-header h1{
  margin:0;
  font-size:clamp(36px,5vw,58px);
  line-height:.96;
  letter-spacing:-.05em;
  color:#173b2a;
}

.eph-auth-header p{
  margin:12px 0 0;
  color:#4a5f52;
  font-size:17px;
  line-height:1.45;
  font-weight:700;
}

.eph-auth-form,
.eph-auth-success,
.eph-auth-error{
  border-radius:30px;
  border:1px solid rgba(20,92,51,.13);
  background:rgba(255,255,255,.94);
  box-shadow:0 30px 76px rgba(15,23,42,.11);
}

.eph-auth-form{
  padding:28px;
}

.eph-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.eph-form-grid label{
  display:block;
}

.eph-form-grid label span{
  display:block;
  margin-bottom:7px;
  color:#173b2a;
  font-size:13px;
  font-weight:950;
}

.eph-form-grid input,
.eph-form-grid select,
.eph-form-grid textarea{
  width:100%;
  border:1px solid rgba(20,92,51,.16);
  border-radius:16px;
  background:#ffffff;
  color:#173b2a;
  font:inherit;
  font-size:15px;
  font-weight:700;
  padding:13px 15px;
  outline:none;
  box-shadow:none;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.eph-form-grid textarea{
  resize:vertical;
  min-height:120px;
}

.eph-form-grid input:focus,
.eph-form-grid select:focus,
.eph-form-grid textarea:focus{
  border-color:#cde5d6;
  box-shadow:0 0 0 3px rgba(22,92,52,.08);
}

.eph-form-wide{
  grid-column:1 / -1;
}

.eph-field-note{
  display:block;
  margin-top:6px;
  color:#697a71;
  font-size:12px;
  line-height:1.35;
  font-weight:650;
}

/* live validation â€“ ÄistÃ¡ sÃºÄasÅ¥ formulÃ¡rov */
.eph-live-field.is-bad input{
  border-color:#dc2626;
  background:#fff7f7;
  box-shadow:0 0 0 3px rgba(220,38,38,.10);
}

.eph-live-field.is-ok input{
  border-color:#16a34a;
  background:#fbfffc;
  box-shadow:0 0 0 3px rgba(22,163,74,.10);
}

.eph-live-field.is-bad .eph-field-note{
  color:#b91c1c;
  font-weight:900;
}

.eph-live-field.is-ok .eph-field-note{
  color:#166534;
  font-weight:900;
}

.eph-password-tools{
  margin-top:18px;
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  gap:12px 16px;
  align-items:center;
}

.eph-lite-btn{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid #e7eee9;
  background:#ffffff;
  color:#173b2a;
  min-height:40px;
  padding:0 15px;
  border-radius:999px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(15,23,42,.08);
}

.eph-lite-btn:hover{
  transform:translateY(-1px);
  border-color:#cde5d6;
  color:#165c34;
}

.eph-show-password{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid #e7eee9;
  background:#ffffff;
  color:#173b2a;
  font-size:13px;
  font-weight:950;
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  cursor:pointer;
}

.eph-show-password input{
  width:16px;
  height:16px;
  accent-color:#165c34;
}

.eph-show-password:hover{
  transform:translateY(-1px);
  border-color:#cde5d6;
  color:#165c34;
}

.eph-consent-block{
  margin-top:22px;
  display:grid;
  gap:12px;
}

.eph-consent-block .eph-check{
  margin-top:0;
}

#customerPasswordHint{
  color:#4a5f52;
  font-size:13px;
  font-weight:700;
}

.eph-check{
  margin-top:18px;
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
  color:#4a5f52;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}

.eph-check input{
  margin-top:3px;
}

.eph-check a{
  color:#165c34;
  font-weight:950;
}

.eph-auth-actions{
  margin-top:24px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}

.eph-auth-actions button,
.eph-auth-actions a,
.eph-auth-success a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid #165c34;
  background:#165c34;
  color:#ffffff;
  text-decoration:none;
  font:inherit;
  font-size:15px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 16px 30px rgba(22,92,52,.20);
}

.eph-auth-actions a{
  background:#ffffff;
  color:#173b2a;
  border-color:#e7eee9;
  box-shadow:0 10px 22px rgba(15,23,42,.08);
}

.eph-auth-actions button:hover,
.eph-auth-success a:hover{
  background:#0f4826;
  border-color:#0f4826;
  transform:translateY(-1px);
}

.eph-auth-actions a:hover{
  color:#165c34;
  border-color:#cde5d6;
  transform:translateY(-1px);
}

.eph-auth-note{
  margin:18px 0 0;
  color:#697a71;
  font-size:13px;
  line-height:1.45;
  font-weight:650;
}

.eph-auth-error{
  padding:16px 18px;
  margin-bottom:16px;
  color:#7f1d1d;
  background:#fff5f5;
  border-color:#fecaca;
  font-weight:900;
}

.eph-auth-success{
  padding:26px;
}

.eph-auth-success strong{
  display:block;
  font-size:28px;
  color:#173b2a;
  margin-bottom:10px;
}

.eph-auth-success p{
  color:#4a5f52;
  font-size:16px;
  line-height:1.5;
  font-weight:700;
}

.eph-role-preview{
  margin-top:18px;
  padding:18px;
  border-radius:20px;
  background:rgba(239,250,243,.88);
  border:1px solid rgba(20,92,51,.12);
}

.eph-role-preview strong{
  display:block;
  color:#173b2a;
  font-size:16px;
  font-weight:950;
}

.eph-role-preview p{
  margin:6px 0 0;
  color:#4a5f52;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:860px){
  .eph-loginhub-header,
  .eph-auth-header{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
  }

  .eph-loginhub-grid,
  .eph-form-grid{
    grid-template-columns:1fr;
  }

  .eph-loginhub-admin{
    flex-direction:column;
    align-items:flex-start;
  }

  .eph-loginhub-admin a{
    width:100%;
  }
}

@media (max-width:560px){
  .eph-loginhub,
  .eph-auth{
    padding:28px 14px;
  }

  .eph-loginhub-logo img{
    width:138px;
    max-width:138px;
  }

  .eph-auth-logo img{
    width:126px;
    max-width:126px;
  }

  .eph-loginhub-card{
    grid-template-columns:1fr;
    min-height:auto;
    padding:24px;
  }

  .eph-loginhub-card-text strong{
    font-size:26px;
  }

  .eph-auth-form{
    padding:20px;
  }

  .eph-auth-actions button,
  .eph-auth-actions a{
    width:100%;
  }
  
  .eph-password-tools{
  grid-template-columns:1fr;
}

.eph-show-password,
.eph-lite-btn{
  width:100%;
  justify-content:center;
}
}
/* =========================================================
   ACCOUNT HEADER ACTIONS â€“ consistent top-right actions
   ========================================================= */
.eph-auth-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.eph-loginhub-session{
  margin-top:22px;
}

@media (max-width:860px){
  .eph-auth-header-actions{
    justify-content:center;
  }
}

/* =========================================================
   EPHARO AUTH TOP ACTIONS
   Jednotné horné tlačidlá pre customer/company/platform vstupy
   ========================================================= */

.eph-auth-top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.eph-auth-top-actions .eph-loginhub-back{
  position:static !important;
  top:auto !important;
  right:auto !important;
}

@media (max-width:760px){
  .eph-auth-top-actions{
    justify-content:flex-start;
    width:100%;
  }
}