/* =====================================================
   LOGIN PAGE - APPLE / STRIPE STYLE
   ===================================================== */

.apple-login-page{
  min-height:100vh;
  background:
    radial-gradient(circle at top left,rgba(59,130,246,.08),transparent 28%),
    radial-gradient(circle at bottom right,rgba(14,165,233,.06),transparent 24%),
    linear-gradient(135deg,#f8fafc 0%,#eef2f7 100%) !important;
}

.login-shell{
  width:100%;
  padding:30px 16px;
}

.apple-login-box{
  width:440px;
  margin:0 auto;
}

.apple-login-logo{
  margin-bottom:22px;
}

.apple-login-logo .login-logo-img{
  width:430px;
  height:100px;
  margin:0 auto 14px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(226,232,240,.95);
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.apple-login-logo .login-logo-img img{
  width:400px;
  height:auto;
  object-fit:contain;
  display:block;
}

.apple-login-logo .login-title{
  font-size:28px;
  line-height:1.1;
  font-weight:700;
  color:#0f172a;
  letter-spacing:-.02em;
  margin-top:4px;
}

.apple-login-card{
  border:1px solid rgba(226,232,240,.95) !important;
  border-radius:22px !important;
  background:rgba(255,255,255,.88) !important;
  box-shadow:0 18px 40px rgba(15,23,42,.08) !important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  overflow:hidden;
}

.apple-login-card .login-card-body{
  padding:28px 26px 24px !important;
  background:transparent !important;
  border-radius:24px;
}

.apple-login-card .login-box-msg{
  color:#475569;
  font-size:15px;
  margin-bottom:18px;
}

.apple-login-card .alert{
  border-radius:14px;
  border:0;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.apple-login-card .form-control{
  height:48px;
  border:1px solid #dbe3ec;
  border-radius:12px 0 0 12px !important;
  box-shadow:none !important;
  font-size:15px;
  color:#0f172a;
  background:rgba(255,255,255,.92);
}

.apple-login-card .form-control:focus{
  border-color:#93c5fd !important;
  box-shadow:0 0 0 .18rem rgba(37,99,235,.10) !important;
}

.apple-login-card .input-group-text{
  height:48px;
  border:1px solid #dbe3ec;
  border-left:0;
  border-radius:0 12px 12px 0 !important;
  background:#f8fafc;
  color:#64748b;
  min-width:48px;
  justify-content:center;
}

.apple-login-card .password-toggle{
  cursor:pointer;
}

.apple-login-btn{
  height:46px;
  border-radius:12px !important;
  border:0 !important;
  background:linear-gradient(135deg,#2563eb 0%,#3b82f6 100%) !important;
  box-shadow:0 12px 22px rgba(37,99,235,.20);
  font-weight:700;
  letter-spacing:.2px;
  margin-top:4px;
}

.apple-login-btn:hover{
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%) !important;
}

.login-divider{
  display:flex;
  align-items:center;
  text-align:center;
  margin:20px 0 18px;
}

.login-divider::before,
.login-divider::after{
  content:"";
  flex:1;
  border-bottom:1px solid #e5e7eb;
}

.login-divider span{
  padding:0 12px;
  color:#94a3b8;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.8px;
}

.login-section-title{
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#334155;
  margin-bottom:12px;
}

.apple-google-btn{
  height:46px;
  border-radius:12px !important;
  border:1px solid #e5e7eb !important;
  background:#fff !important;
  color:#374151 !important;
  font-weight:700;
  display:flex !important;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.apple-google-btn:hover{
  background:#f8fafc !important;
  color:#111827 !important;
}

.apple-google-btn .fa-google{
  color:#ea4335;
}

.apple-login-helper{
  text-align:center;
  font-size:13px;
  line-height:1.7;
  color:#64748b;
  margin:16px auto 0;
  max-width:320px;
}

/* ===== LOGIN INFO SPLIT ===== */
.login-info-shell{
  width:100%;
  min-height:100vh;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:36px;
  align-items:center;
  padding:42px 7%;
  background:
    radial-gradient(circle at top left,rgba(47,128,237,.12),transparent 35%),
    radial-gradient(circle at bottom right,rgba(16,185,129,.10),transparent 35%),
    #f4f7fb;
}

.login-info-left h1{
  font-size:42px;
  font-weight:800;
  color:#111827;
  margin:22px 0 12px;
}

.login-lead{
  font-size:17px;
  color:#5b677a;
  max-width:620px;
  line-height:1.7;
}

.login-brand-card{
  display:inline-flex;
  background:#fff;
  padding:16px 22px;
  border-radius:22px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}

.login-brand-card img{
  height:74px;
  max-width:100%;
  object-fit:contain;
}

.login-feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:28px;
}

.login-feature-item{
  display:flex;
  gap:14px;
  background:#fff;
  padding:18px;
  border-radius:20px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  border:1px solid rgba(226,232,240,.9);
}

.login-feature-item i{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eaf2ff;
  color:#2563eb;
  font-size:20px;
}

.login-feature-item strong{
  display:block;
  color:#111827;
  font-size:15px;
}

.login-feature-item span{
  display:block;
  color:#64748b;
  font-size:13px;
  margin-top:3px;
}

.login-note-box{
  display:flex;
  gap:14px;
  margin-top:22px;
  background:#0f172a;
  color:#fff;
  padding:18px 20px;
  border-radius:22px;
  box-shadow:0 18px 45px rgba(15,23,42,.16);
}

.login-note-box i{
  font-size:24px;
  color:#93c5fd;
  margin-top:3px;
}

.login-note-box strong{
  display:block;
  margin-bottom:5px;
}

.login-note-box p{
  margin:0;
  color:#dbeafe;
  line-height:1.6;
  font-size:14px;
}

.login-info-right{
  display:flex;
  justify-content:center;
}

.login-info-right .apple-login-box{
  width:100%;
  max-width:460px;
}

.login-flow{
  display:grid;
  grid-template-columns:115px 30px 115px 30px 115px 30px 115px;
  align-items:center;
  gap:6px;
  margin-top:35px;
}

.flow-step{
  width:115px;
  min-height:130px;
  background:#fff;
  padding:14px 10px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
  border:1px solid rgba(226,232,240,.9);
  transition:all .2s ease;
}

.flow-step:hover{
  transform:translateY(-5px);
}

.flow-icon{
  width:48px;
  height:48px;
  margin:0 auto 10px;
  border-radius:50%;
  background:#edf4ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#2563eb;
}

.flow-step h5{
  font-size:14px;
  font-weight:700;
  margin-bottom:4px;
}

.flow-step small{
  display:block;
  font-size:12px;
  line-height:1.4;
  color:#64748b;
}

.flow-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#94a3b8;
}

/* =====================================================
   GOOGLE IDENTITY SERVICES - LOGIN PEMOHON
   ===================================================== */

.google-login-wrapper{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  margin-top:18px;
  margin-bottom:16px;
}

/* Container tombol Google */
.google-login-wrapper .g_id_signin{
  width:100%;
  max-width:360px;
  display:flex;
  justify-content:center;
}

/*
 * Google membuat iframe sendiri.
 * Kita beri ruang dan ukuran yang lebih proporsional.
 */
.google-login-wrapper iframe{
  width:100% !important;
  max-width:360px !important;
  min-height:48px !important;
}

/* Panel kanan dibuat sedikit lebih lega */
.login-info-right .apple-login-box{
  width:100%;
  max-width:500px;
}

/* Card kanan */
.login-info-right .apple-login-card{
  min-height:390px;
  display:flex;
  align-items:center;
}

/* Body card */
.login-info-right .login-card-body{
  width:100%;
  padding:34px 34px 30px !important;
}

/* Judul utama card */
.login-info-right .login-card-body h4{
  font-size:24px;
  font-weight:700;
  color:#5b5b5b;
  margin-bottom:28px;
}

/* Login Pemohon */
.login-info-right .login-section-title{
  font-size:16px;
  font-weight:700;
  color:#334155;
  margin-bottom:18px;
}

/* Deskripsi Google */
.login-info-right .apple-login-helper{
  max-width:350px;
  font-size:14px;
  line-height:1.75;
  color:#64748b;
  margin:18px auto 0;
}

/* Login Admin / Petugas */
.login-info-right #showAdminLogin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-weight:500;
  text-decoration:none;
}

.login-info-right #showAdminLogin:hover{
  text-decoration:none;
}

/* Jika login admin dibuka */
.login-info-right #adminLoginBox{
  width:100%;
}

/* Alert */
.login-info-right .alert{
  font-size:14px;
  line-height:1.55;
  padding:14px 16px;
  margin-bottom:18px;
}

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

@media (max-width: 1100px){

  .login-info-shell{
    grid-template-columns:1fr;
    gap:34px;
    padding:38px 5%;
  }

  .login-info-left{
    max-width:760px;
    margin:0 auto;
    width:100%;
  }

  .login-info-right{
    width:100%;
  }

  .login-info-right .apple-login-box{
    max-width:520px;
  }

  .login-flow{
    grid-template-columns:
      1fr 30px
      1fr 30px
      1fr 30px
      1fr;
  }

  .flow-step{
    width:100%;
  }
}

@media (max-width: 768px){

  .login-info-shell{
    display:block;
    padding:24px 18px 36px;
  }

  .login-info-left h1{
    font-size:32px;
    line-height:1.15;
  }

  .login-lead{
    font-size:15px;
  }

  .login-brand-card{
    width:100%;
    justify-content:center;
    padding:14px 18px;
  }

  .login-brand-card img{
    height:auto;
    max-height:64px;
  }

  .login-flow{
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:26px;
  }

  .flow-step{
    width:100%;
    min-height:125px;
  }

  .flow-arrow{
    display:none;
  }

  .login-note-box{
    margin-bottom:30px;
  }

  .login-info-right .apple-login-box{
    max-width:none;
  }

  .login-info-right .apple-login-card{
    min-height:0;
  }

  .login-info-right .login-card-body{
    padding:28px 22px 24px !important;
  }

  .login-info-right .login-card-body h4{
    font-size:22px;
    margin-bottom:24px;
  }

  .google-login-wrapper .g_id_signin,
  .google-login-wrapper iframe{
    max-width:100% !important;
  }
}

@media (max-width: 480px){

  .login-info-shell{
    padding:18px 14px 28px;
  }

  .login-info-left h1{
    font-size:28px;
  }

  .login-flow{
    grid-template-columns:1fr 1fr;
  }

  .flow-step{
    padding:12px 8px;
    min-height:120px;
  }

  .login-note-box{
    padding:16px;
    border-radius:18px;
  }

  .login-info-right .login-card-body{
    padding:24px 18px 22px !important;
  }

  .login-info-right .login-card-body h4{
    font-size:20px;
  }
}