/* assets/css/auth-modal.css */

.em-auth-overlay{
  position:fixed; inset:0; z-index:999999;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.em-auth-overlay.em-open{ display:flex; }

.em-auth-modal{
  width:100%;
  max-width:520px;
  background:#fff;
  border-radius:22px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  overflow:hidden;
  position:relative;
  font-family:inherit;
}

.em-auth-header{
  padding:26px 28px 10px;
  text-align:center;
}

.em-auth-logo{
  width:56px; height:56px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#d90429;
  color:#fff;
  font-weight:800;
  font-size:26px;
  margin-bottom:12px;
}

.em-auth-title{ margin:0; font-size:22px; font-weight:800; color:#111827; }
.em-auth-subtitle{ margin:6px 0 0; font-size:14px; color:#6b7280; }

.em-auth-close{
  position:absolute;
  top:14px; right:14px;
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#6b7280;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.em-auth-close:hover{ background:#f9fafb; }

.em-auth-body{ padding:16px 28px 24px; }

.em-auth-tabs{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:8px 0 18px;
}
.em-auth-tab{
  border:1px solid #e5e7eb;
  padding:8px 14px;
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  font-weight:700;
  color:#374151;
}
.em-auth-tab.em-active{
  border-color:#d90429;
  color:#d90429;
  background:rgba(217,4,41,.06);
}

.em-auth-field{ margin:12px 0; }
.em-auth-label{ display:block; font-size:12px; color:#6b7280; margin:0 0 6px; font-weight:700; }
.em-auth-input{
  width:100%;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  outline:none;
  font-size:14px;
}
.em-auth-input:focus{ border-color:#d90429; box-shadow:0 0 0 3px rgba(217,4,41,.12); }

.em-auth-row{ display:flex; gap:10px; }
.em-auth-row .em-auth-field{ flex:1; }

.em-auth-btn{
  width:100%;
  margin-top:14px;
  padding:14px 16px;
  border-radius:18px;
  border:none;
  cursor:pointer;
  background:#f38aa0;
  color:#fff;
  font-weight:800;
  font-size:16px;
}
.em-auth-btn.em-solid{ background:#d90429; }
.em-auth-btn:disabled{ opacity:.6; cursor:not-allowed; }

.em-auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:16px 0 12px;
  color:#9ca3af;
  font-size:12px;
}
.em-auth-divider:before,
.em-auth-divider:after{
  content:"";
  height:1px;
  background:#e5e7eb;
  flex:1;
}

.em-auth-alt{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.em-auth-alt button{
  width:100%;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  font-weight:800;
  color:#111827;
}
.em-auth-alt button:hover{ background:#f9fafb; }

.em-auth-footnote{
  margin-top:14px;
  text-align:center;
  font-size:12px;
  color:#6b7280;
}
.em-auth-error{
  display:none;
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(220,38,38,.08);
  border:1px solid rgba(220,38,38,.25);
  color:#b91c1c;
  font-weight:700;
  font-size:13px;
}
.em-auth-error.em-show{ display:block; }

@media (max-width:480px){
  .em-auth-header{ padding:22px 18px 8px; }
  .em-auth-body{ padding:14px 18px 18px; }
  .em-auth-modal{ border-radius:18px; }
}
