/* PassageMail Account Setup — Styles */

.pmep-setup { max-width: 560px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pmep-message { max-width: 560px; margin: 40px auto; padding: 24px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fafbfc; text-align: center; }
.pmep-message h3 { margin: 0 0 8px; font-size: 18px; color: #1a1a1a; }
.pmep-message p { margin: 0; color: #6b7280; font-size: 14px; }
.pmep-message a { color: #3b82f6; }

.pmep-step { padding: 20px 0; }
.pmep-step + .pmep-step { border-top: 1px solid #e5e7eb; }
.pmep-step-title { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: #1a1a1a; }
.pmep-step-desc { margin: 0 0 16px; font-size: 13px; color: #6b7280; line-height: 1.5; }

/* Email row */
.pmep-email-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.pmep-username-wrap {
    flex: 1; min-width: 200px; display: flex; align-items: center;
    border: 1px solid #d1d5db; border-radius: 6px; background: #fff; overflow: hidden; transition: border-color 0.2s;
}
.pmep-username-wrap:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
.pmep-username-wrap input {
    flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 14px;
    font-family: monospace; background: transparent; min-width: 100px;
}
.pmep-domain-suffix { padding: 10px 12px 10px 0; font-size: 14px; font-family: monospace; color: #6b7280; white-space: nowrap; }

/* Buttons */
.pmep-btn {
    padding: 10px 20px; font-size: 13px; font-weight: 600; border-radius: 6px;
    cursor: pointer; white-space: nowrap; transition: all 0.2s; border: none;
}
.pmep-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pmep-btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.pmep-btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
.pmep-btn-primary { background: #3b82f6; color: #fff; margin-top: 12px; }
.pmep-btn-primary:hover:not(:disabled) { background: #2563eb; }

/* Result messages */
.pmep-result { margin-top: 8px; font-size: 13px; min-height: 20px; }
.pmep-result.available { color: #16a34a; font-weight: 500; }
.pmep-result.unavailable, .pmep-result.error { color: #dc2626; font-weight: 500; }
.pmep-result.checking { color: #6b7280; font-style: italic; }
.pmep-result.creating { color: #3b82f6; font-style: italic; }

/* Password fields */
.pmep-field { margin-bottom: 12px; }
.pmep-field label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: #374151; }
.pmep-field input[type="password"] {
    width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid #d1d5db;
    border-radius: 6px; background: #fff; box-sizing: border-box; transition: border-color 0.2s;
}
.pmep-field input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }

/* Requirements checklist */
.pmep-requirements {
    margin: 8px 0 0; padding: 10px 12px; border-radius: 6px;
    background: #f9fafb; border: 1px solid #e5e7eb;
}
.pmep-req { font-size: 12px; color: #dc2626; line-height: 1.8; transition: color 0.2s; }
.pmep-req.met { color: #16a34a; }

/* Success state */
.pmep-success-box {
    padding: 24px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0;
}
.pmep-success-title { margin: 0 0 16px; font-size: 20px; color: #16a34a; }
.pmep-credential-block { margin-bottom: 16px; padding: 12px; background: #fff; border-radius: 6px; border: 1px solid #e5e7eb; }
.pmep-credential-block h4 { margin: 0 0 8px; font-size: 14px; color: #374151; }
.pmep-cred { font-size: 13px; line-height: 1.8; }
.pmep-label { font-weight: 500; color: #6b7280; display: inline-block; min-width: 80px; }
.pmep-value { color: #1a1a1a; font-family: monospace; }
.pmep-value a { color: #3b82f6 !important; text-decoration: none; }
.pmep-value a:hover { text-decoration: underline; }
.pmep-webmail-note { margin-top: 4px; font-size: 12px; color: #6b7280; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pmep-note {
    margin-top: 16px; padding: 12px; font-size: 12px; line-height: 1.5;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; color: #92400e;
}
