/**
 * Login Page Customization Styles
 *
 * @package Polanger_Dashboard_Tools_Pro
 * @since 4.1.0
 */

/* Form */
.pdt-login-page-form {
  display: block;
  clear: both;
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
}

/* Section */
.pdt-lp-section {
  display: block;
  clear: both;
  margin-bottom: 24px;
}

.pdt-lp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 12px 0;
  padding: 0;
}

.pdt-lp-section-title .dashicons {
  color: #6366f1;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Card */
.pdt-lp-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.pdt-lp-card-desc {
  color: #666;
  font-size: 13px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Option */
.pdt-lp-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pdt-lp-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdt-lp-option:first-of-type {
  padding-top: 0;
}

.pdt-lp-option-content {
  flex: 1;
}

.pdt-lp-option-label {
  display: block;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 4px;
}

.pdt-lp-option-desc {
  display: block;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.pdt-lp-full-width {
  width: 100%;
}

/* Toggle Switch */
.pdt-lp-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.pdt-lp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pdt-lp-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.pdt-lp-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pdt-lp-toggle input:checked + .pdt-lp-toggle-slider {
  background-color: #6366f1;
}

.pdt-lp-toggle input:checked + .pdt-lp-toggle-slider:before {
  transform: translateX(24px);
}

/* URL Input */
.pdt-lp-url-input {
  flex-direction: column;
}

.pdt-lp-url-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pdt-lp-url-wrapper-lg {
  margin-top: 15px;
}

.pdt-lp-option-label-spaced {
  margin-bottom: 5px;
}

.pdt-lp-url-wrapper code {
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  border: 1px solid #e0e0e0;
}

.pdt-lp-slug-input {
  padding: 8px 12px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  width: 150px !important;
  background: #fff !important;
}

.pdt-lp-slug-input-full {
  width: 100% !important;
}

.pdt-lp-input-top-space {
  margin-top: 10px;
}

.pdt-lp-hidden {
  display: none;
}

.pdt-lp-slug-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1) !important;
  outline: none !important;
}

.pdt-lp-current-url {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 6px;
  font-size: 13px;
  border-left: 4px solid #10b981;
}

.pdt-lp-current-url a {
  color: #065f46;
  text-decoration: none;
  font-weight: 500;
}

.pdt-lp-current-url a:hover {
  text-decoration: underline;
}

.pdt-lp-bookmark-hint {
  color: #10b981;
  font-weight: 600;
  margin-left: 8px;
}

/* Warning Notice */
.pdt-lp-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  margin-bottom: 24px;
}

.pdt-lp-warning .dashicons {
  color: #d97706;
  font-size: 24px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.pdt-lp-warning strong {
  display: block;
  color: #92400e;
  margin-bottom: 4px;
}

.pdt-lp-warning p {
  margin: 0;
  color: #78350f;
  font-size: 13px;
  line-height: 1.5;
}

/* reCAPTCHA Status Box */
.pdt-lp-recaptcha-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid;
}

.pdt-lp-recaptcha-status > .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pdt-lp-recaptcha-status strong {
  display: block;
  margin-bottom: 4px;
}

.pdt-lp-recaptcha-status p {
  margin: 0 0 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

.pdt-lp-recaptcha-status .button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.pdt-lp-status-action {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 8px !important;
}

.pdt-lp-status-note {
  color: #64748b;
  font-size: 12px;
  margin-top: 8px;
}

.pdt-lp-recaptcha-success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-left-color: #22c55e;
}

.pdt-lp-recaptcha-success > .dashicons {
  color: #16a34a;
}

.pdt-lp-recaptcha-success strong {
  color: #166534;
}

.pdt-lp-recaptcha-success p {
  color: #15803d;
}

.pdt-lp-recaptcha-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: #f59e0b;
}

.pdt-lp-recaptcha-warning > .dashicons {
  color: #d97706;
}

.pdt-lp-recaptcha-warning strong {
  color: #92400e;
}

.pdt-lp-recaptcha-warning p {
  color: #78350f;
}

.pdt-lp-recaptcha-info {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-left-color: #0ea5e9;
}

.pdt-lp-recaptcha-info > .dashicons {
  color: #0284c7;
}

.pdt-lp-recaptcha-info strong {
  color: #075985;
}

.pdt-lp-recaptcha-info p {
  color: #0369a1;
}

/* Logo Upload */
.pdt-lp-logo-upload {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
}

.pdt-lp-logo-preview {
  width: 80px;
  height: 80px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
}

.pdt-lp-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdt-lp-logo-preview .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #cbd5e1;
}

.pdt-lp-bg-preview {
  width: 120px;
  height: 80px;
}

.pdt-lp-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdt-lp-upload-btn,
.pdt-lp-remove-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px !important;
  font-size: 13px !important;
}

.pdt-lp-upload-btn .dashicons,
.pdt-lp-remove-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.pdt-lp-remove-btn {
  color: #dc2626 !important;
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}

.pdt-lp-remove-btn:hover {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
}

/* Radio Group */
.pdt-lp-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.pdt-lp-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.pdt-lp-radio:hover {
  border-color: #6366f1;
  background: #f5f3ff;
}

.pdt-lp-radio input[type="radio"] {
  accent-color: #6366f1;
  width: 18px;
  height: 18px;
}

.pdt-lp-radio input[type="radio"]:checked + span {
  color: #6366f1;
  font-weight: 600;
}

/* Color Option */
.pdt-lp-color-option {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdt-lp-color-input {
  width: 60px;
  height: 40px;
  padding: 2px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}

.pdt-lp-color-input:hover {
  border-color: #6366f1;
}

/* Checkbox Group */
.pdt-lp-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.pdt-lp-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.pdt-lp-checkbox-item:hover {
  border-color: #6366f1;
  background: #f5f3ff;
}

.pdt-lp-checkbox-item input[type="checkbox"] {
  accent-color: #6366f1;
  width: 18px;
  height: 18px;
}

.pdt-lp-checkbox-item input[type="checkbox"]:checked + span {
  color: #6366f1;
  font-weight: 600;
}

/* Submit Button */
.pdt-lp-submit {
  margin-top: 24px;
}

.pdt-lp-submit .button-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  padding: 10px 24px;
  height: auto;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
}

.pdt-lp-submit .button-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 782px) {
  .pdt-lp-option {
    flex-direction: column;
    gap: 12px;
  }
  
  .pdt-lp-url-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pdt-lp-slug-input {
    width: 100% !important;
  }
  
  .pdt-lp-warning {
    flex-direction: column;
    gap: 8px;
  }
}
