/* =========================================================
   phone-login.css (Patient-login style spacing + font feel)
   - LEFT text: no card, starts from top (no extra padding)
   - RIGHT: only form in card
   - Better typography like your 2nd screenshot
   ========================================================= */

/* Remove Keycloak outer card */
.login-pf-page,
.login-pf-page body,
.login-pf-page .container,
.login-pf-page .container-fluid {
  background: transparent !important;
}

.login-pf-page .card-pf {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: none !important;
}

.login-pf-page .login-pf-page-header { margin-bottom: 0 !important; }
.login-pf-page .card-pf form,
.login-pf-page .card-pf .form-horizontal { margin: 0 !important; }
.login-pf-page .kc-page { background: transparent !important; }

/* ========= Layout ========= */
.ms-auth-page{
  max-width: 1250px;
  margin: 0 auto;
  padding: 42px 18px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
}

/* LEFT text (no card) */
.ms-auth-hero{
  flex: 1;
  padding: 0;
  margin: 0;
}

/* small top label */
.ms-hero-top{
  font-size: 14px;
  color: #64748b;
  margin: 0 0 10px;
}

/* Title typography similar to patient login (clean, not too “heavy”) */
.ms-hero-title{
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.6px;
}

/* Checklist (renter + partner) */
.ms-hero-checklist{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #111827;
  max-width: 720px;
}

.ms-hero-checklist li{
  position: relative;
  padding-left: 40px;
  margin: 14px 0;
  font-weight: 600;
}

.ms-hero-checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  font-weight: 900;
}

/* Hero benefits card (fills left area cleanly) */
.ms-hero-benefits{
  margin-top: 24px;
  max-width: 760px;
  padding: 18px 18px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.ms-hero-benefits-title{
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  color: #0f172a;
}

.ms-hero-benefits-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.ms-hero-benefit-item{
  padding: 14px 16px;
}

.ms-hero-benefit-item + .ms-hero-benefit-item{
  border-left: 1px solid #e5e7eb;
}

.ms-hero-benefit-icon{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #16a34a;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
}

.ms-hero-benefit-item h3{
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.24;
  font-weight: 800;
  color: #111827;
}

.ms-hero-benefit-item p{
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #334155;
}

.ms-hero-benefits-trust{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #14532d;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
}

.ms-hero-benefits-trust-icon{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* RIGHT column */
.ms-auth-rightcol{
  width: 520px;
  flex: 0 0 520px;
  display: flex;
  justify-content: flex-end;
}

/* FORM CARD */
.ms-auth-formcard{
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 34px 34px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .10);
}

/* Top tiny label */
.ms-form-top{
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 10px;
}

/* Form title */
.ms-auth-title{
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
}

/* Alerts */
.ms-alert{
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.ms-alert-error{
  background: #fff1f2;
  color: #b91c1c;
  border: 1px solid #fecdd3;
}

/* Form */
.ms-form{ margin-top: 18px; }
.ms-field{ margin-bottom: 16px; }

.ms-label{
  display:block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color:#334155;
}

.ms-control{
  width:100%;
  height:54px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:0 14px;
  font-size:16px;
  outline:none;
}

.ms-control:disabled{
  background:#f8fafc;
  color:#94a3b8;
  cursor:not-allowed;
}

.ms-phone-row{
  display:flex;
  gap:12px;
}

.ms-prefix{
  width:74px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
  font-weight:900;
}

/* Radio */
.ms-radio-row{
  display:flex;
  gap:18px;
  align-items:center;
  padding: 8px 0;
}
.ms-radio{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding: 12px 14px;
  cursor:pointer;
  user-select:none;
  font-weight:900;
  color:#0f172a;
}
.ms-radio input[type="radio"]{
  width:18px;
  height:18px;
  cursor:pointer;
}

/* Buttons */
.ms-actions{
  display:flex;
  gap:18px;
  margin-top: 18px;
}

.ms-btn{
  flex: 1;
  height: 62px;
  border-radius: 12px;
  border: 0;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.ms-btn-primary{
  background:#67e08a;
  color:#fff;
}
.ms-btn-primary:disabled{ opacity:.55; cursor:not-allowed; }

.ms-btn-outline{
  background:#fff;
  border:2px solid #ef4444;
  color:#ef4444;
}

.ms-footer-note{
  margin-top: 14px;
  font-size: 13px;
  color: #64748b;
}

/* Google */
.ms-divider{
  margin:16px 0;
  text-align:center;
  opacity:.7;
}

.ms-btn-google{
  display: inline-flex;
  width:100%;
  height: 62px;
  padding: 0 16px;
  gap: 12px;
  border-radius:12px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1px;
  text-decoration:none;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .05s ease;
}
.ms-btn-google:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .10);
}
.ms-btn-google:active{
  transform: translateY(1px);
}
.google-icon-wrap{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}
.google-icon{
  width: 18px;
  height: 18px;
  display: block;
}

/* Responsive */
@media (max-width: 1100px){
  .ms-auth-page{ gap: 34px; }
  .ms-auth-rightcol{ width: 480px; flex-basis: 480px; }
  .ms-hero-title{ font-size: 40px; }
  .ms-hero-checklist{ font-size: 17px; }
  .ms-hero-benefits-title{ font-size: 26px; }
  .ms-hero-benefit-item h3{ font-size: 20px; }
  .ms-hero-benefit-item p{ font-size: 15px; }
}

@media (max-width: 992px){
  .ms-auth-page{
    flex-direction: column;
    gap: 22px;
    padding: 24px 16px 60px;
  }
  .ms-auth-rightcol{
    width: 100%;
    flex-basis: auto;
    justify-content: flex-start;
  }
  .ms-auth-formcard{
    padding: 28px 22px;
  }
  .ms-hero-title{
    font-size: 34px;
  }
  .ms-hero-benefits{
    max-width: 100%;
  }
}

.ms-footer-links {
  margin-top: 20px;
  display: flex;
  gap: 18px;
}

.ms-footer-links .ms-btn {
  flex: 1;
}

/* REGISTER BUTTON */
.ms-register-btn {
  display: block;
  width: 90%;
  max-width: 90%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid #81db6d;
  background: #81db6d;
  color: #e53935;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.08);
}

/* Hover effect */
.ms-register-btn:hover {
  background: #e53935;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.25);
  transform: translateY(-2px);
}

/* Active click */
.ms-register-btn:active {
  transform: translateY(0px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.15);
}
#regbtn {
  background-color: #28a745;
  color: #ffffff;
  border: 1px solid #28a745;
}

#regbtn:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* ===== Extra mobile responsiveness patch ===== */
@media (max-width: 768px){
  .ms-hero-title{
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.14;
    letter-spacing: -0.3px;
  }

  .ms-hero-checklist{
    font-size: 15px;
    line-height: 1.55;
    margin-top: 12px;
  }

  .ms-hero-benefits{
    margin-top: 18px;
    padding: 14px 14px 12px;
    border-radius: 12px;
  }

  .ms-hero-benefits-title{
    font-size: 22px;
    margin-bottom: 10px;
  }

  .ms-hero-benefits-grid{
    grid-template-columns: 1fr;
  }

  .ms-hero-benefit-item{
    padding: 12px 6px;
  }

  .ms-hero-benefit-item + .ms-hero-benefit-item{
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }

  .ms-hero-benefit-icon{
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    font-size: 16px;
  }

  .ms-hero-benefit-item h3{
    font-size: 18px;
    margin-bottom: 6px;
  }

  .ms-hero-benefit-item p{
    font-size: 14px;
  }

  .ms-hero-checklist li{
    padding-left: 30px;
    margin: 10px 0;
  }

  .ms-hero-checklist li::before{
    width: 18px;
    height: 18px;
    top: 2px;
    border-radius: 5px;
    font-size: 12px;
  }

  .ms-auth-formcard{
    padding: 22px 14px;
    border-radius: 14px;
  }

  .ms-auth-title{
    font-size: 22px;
    line-height: 1.2;
  }
}

@media (max-width: 480px){
  .ms-auth-page{
    padding: 16px 10px 44px;
    gap: 16px;
  }

  .ms-hero-title{
    font-size: clamp(24px, 9.2vw, 30px);
    line-height: 1.18;
  }

  .ms-hero-top{
    font-size: 12px;
    margin-bottom: 6px;
  }

  .ms-hero-checklist{
    font-size: 14px;
    line-height: 1.48;
  }

  .ms-hero-benefits-title{
    font-size: 19px;
  }

  .ms-hero-benefits-trust{
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 7px 10px;
  }

  .ms-footer-links,
  .ms-actions{
    flex-direction: column;
    gap: 10px;
  }

  .ms-btn{
    height: 52px;
    font-size: 16px;
  }

  .ms-radio-row{
    gap: 10px;
    flex-wrap: wrap;
  }

  .ms-radio{
    flex: 1 1 140px;
  }

  .ms-phone-row{
    gap: 10px;
  }

  .ms-prefix{
    width: 62px;
  }
}
