/* PeakRock Login Modal */
#tdk-login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#tdk-login-overlay.tdk-login-visible {
  opacity: 1;
}

.tdk-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tdk-login-modal {
  position: relative;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.tdk-login-visible .tdk-login-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tdk-login-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f4f4f5;
  border: none;
  color: #71717a;
  cursor: pointer;
  transition: all 0.2s;
}
.tdk-login-close:hover {
  background: #e4e4e7;
  color: #18181b;
}

.tdk-login-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.tdk-login-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F2C59, #1a3f7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F9B529;
  font-weight: 700;
  font-size: 20px;
  font-family: 'Playfair Display', serif;
}
.tdk-login-brand {
  font-weight: 700;
  font-size: 18px;
  color: #0F2C59;
  letter-spacing: -0.02em;
  font-family: 'Mulish', sans-serif;
}

.tdk-login-title {
  font-size: 26px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  font-family: 'Playfair Display', serif;
}
.tdk-login-subtitle {
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 28px;
  font-family: 'Mulish', sans-serif;
}

.tdk-login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 20px;
  font-family: 'Mulish', sans-serif;
}

.tdk-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tdk-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tdk-login-field label {
  font-size: 13px;
  font-weight: 600;
  color: #52525b;
  font-family: 'Mulish', sans-serif;
}
.tdk-login-field input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Mulish', sans-serif;
  color: #18181b;
  background: #f9fafb;
  border: 1.5px solid #e4e4e7;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tdk-login-field input:focus {
  border-color: #0F2C59;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.08);
  background: #fff;
}
.tdk-login-field input::placeholder {
  color: #a1a1aa;
}

.tdk-login-submit {
  width: 100%;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Mulish', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #0F2C59, #1a3f7a);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 16px rgba(15, 44, 89, 0.25);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.tdk-login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(15, 44, 89, 0.35);
}
.tdk-login-submit:active:not(:disabled) {
  transform: translateY(0);
}
.tdk-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tdk-login-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tdk-spin 0.6s linear infinite;
}

@keyframes tdk-spin {
  to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 480px) {
  .tdk-login-modal {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .tdk-login-title {
    font-size: 22px;
  }
}