/* Login modal */
.t2-login-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.t2-login-modal[hidden] { display: none !important; }
.t2-login-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.t2-login-close {
  position: fixed; top: 16px; right: 16px; z-index: 102;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.t2-login-close:hover { background: rgba(255,255,255,.25); }
.t2-login-card {
  position: relative; z-index: 101; width: 100%; max-width: 768px;
  background: #fff; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1fr; max-height: 90vh;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
}
@media (min-width: 768px) { .t2-login-card { grid-template-columns: 1fr 1fr; } }
.t2-login-form-wrap { padding: 32px; overflow-y: auto; }
.t2-login-title { color: #ff2e63; font-size: 1.5rem; font-weight: 700; margin: 0; }
.t2-login-sub { color: #6b7280; font-size: 14px; margin-top: 4px; }
.t2-login-error {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  background: #fef2f2; color: #b91c1c; font-size: 13px; border: 1px solid #fecaca;
}
.t2-login-fields { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.t2-field { display: block; }
.t2-field > span { display: block; font-size: 12px; color: #374151; margin-bottom: 4px; }
.t2-input-wrap {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px;
  transition: border-color .15s;
}
.t2-input-wrap:focus-within { border-color: #ff2e63; }
.t2-input-wrap svg { color: #9ca3af; flex-shrink: 0; }
.t2-input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: #111; min-width: 0;
}
.t2-input-wrap input::placeholder { color: #9ca3af; }
.t2-phone-wrap { padding-left: 8px; }
.t2-phone-prefix {
  background: #ff2e63; color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.t2-login-forgot { text-align: right; margin-top: 4px; }
.t2-login-forgot a { font-size: 12px; color: #6b7280; }
.t2-login-forgot a:hover { color: #ff2e63; }
.t2-login-submit {
  margin-top: 8px; width: 100%; border: none; border-radius: 8px;
  background: #ff2e63; color: #fff; padding: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.t2-login-submit:hover { background: #ff1654; }
.t2-login-submit:disabled { opacity: .6; cursor: wait; }
.t2-login-divider {
  margin: 20px 0 16px; display: flex; align-items: center; gap: 12px;
}
.t2-login-divider::before, .t2-login-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.t2-login-divider span { font-size: 12px; color: #9ca3af; }
.t2-login-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t2-social-btn {
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.t2-social-btn:hover { background: #f9fafb; }
.t2-login-switch {
  margin-top: 20px; text-align: center; font-size: 12px; color: #6b7280;
}
.t2-login-switch button {
  border: none; background: none; color: #ff2e63; cursor: pointer; font: inherit; font-weight: 600;
}
.t2-login-visual {
  position: relative; display: none; min-height: 500px;
  background: linear-gradient(135deg, #ff2e63, #c91e4d);
}
@media (min-width: 768px) { .t2-login-visual { display: block; } }
.t2-login-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity;
}
.t2-login-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,46,99,.6), rgba(201,30,77,.8));
}
.t2-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
body.t2-modal-open { overflow: hidden; }
.t2-btn-primary { border: none; cursor: pointer; font: inherit; text-decoration: none; }
