/**
 * Wings Two-Factor Authentication Styles
 *
 * @package Wings_Two_Factor_Auth
 */

/* ==========================================================================
   Login Page Styles
   ========================================================================== */

.wings-2fa-container {
	max-width: 400px;
	margin: 0 auto;
	padding: 20px;
}

.wings-2fa-form h2 {
	font-size: 20px;
	margin-bottom: 20px;
	text-align: center;
}

.wings-2fa-error {
	background: #fef2f2;
	border-left: 4px solid #dc2626;
	color: #991b1b;
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.wings-2fa-success {
	background: #f0fdf4;
	border-left: 4px solid #16a34a;
	color: #166534;
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.wings-2fa-prompt {
	margin-bottom: 20px;
}

.wings-2fa-prompt p {
	margin-bottom: 12px;
	color: #374151;
}

.wings-2fa-input-wrapper {
	text-align: center;
}

.wings-2fa-code-input {
	width: 200px !important;
	padding: 16px 20px !important;
	font-size: 24px !important;
	letter-spacing: 8px !important;
	text-align: center !important;
	font-family: monospace !important;
	border: 2px solid #d1d5db !important;
	border-radius: 8px !important;
}

.wings-2fa-code-input:focus {
	border-color: #2563eb !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.wings-2fa-trust-device {
	margin: 20px 0;
}

.wings-2fa-trust-device label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.wings-2fa-form .submit {
	text-align: center;
	margin-bottom: 20px;
}

.wings-2fa-form .button-primary {
	padding: 10px 40px !important;
	font-size: 16px !important;
}

.wings-2fa-alternatives {
	text-align: center;
	border-top: 1px solid #e5e7eb;
	padding-top: 20px;
	margin-top: 20px;
}

.wings-2fa-alternative-method {
	margin-bottom: 12px;
}

.wings-2fa-recovery-link a {
	color: #6b7280;
	text-decoration: underline;
}

/* Magic Link Sent */
.wings-2fa-magic-link-sent {
	text-align: center;
	padding: 40px 20px;
}

.wings-2fa-magic-link-sent h2 {
	font-size: 24px;
	margin-bottom: 16px;
}

.wings-2fa-email-hint {
	background: #f3f4f6;
	padding: 12px 20px;
	border-radius: 6px;
	font-family: monospace;
	margin: 20px 0;
}

.wings-2fa-footer-links {
	margin-top: 30px;
}

/* Lockout */
.wings-2fa-lockout {
	text-align: center;
	padding: 40px 20px;
}

/* ==========================================================================
   Profile Page Styles
   ========================================================================== */

.wings-2fa-profile {
	margin-top: 20px;
}

.wings-2fa-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-weight: 500;
}

.wings-2fa-status-enabled {
	background: #dcfce7;
	color: #166534;
}

.wings-2fa-status-disabled {
	background: #fef3c7;
	color: #92400e;
}

.wings-2fa-method {
	color: #6b7280;
	margin-left: 8px;
}

.wings-2fa-warning {
	color: #d97706;
	margin-left: 8px;
}

.wings-2fa-devices {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wings-2fa-devices li {
	padding: 8px 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	margin-bottom: 4px;
	border-radius: 4px;
}

.wings-2fa-devices li em {
	color: #16a34a;
	font-style: normal;
	font-size: 12px;
}

.wings-2fa-device-meta {
	display: block;
	font-size: 12px;
	color: #9ca3af;
}

/* ==========================================================================
   Setup Wizard
   ========================================================================== */

.wings-2fa-wizard {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 24px;
	max-width: 500px;
}

.wings-2fa-wizard h3 {
	margin-top: 0;
	margin-bottom: 20px;
}

.wings-2fa-step {
	margin-bottom: 24px;
}

/* Method Selection */
.wings-2fa-method-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 16px 0;
}

.wings-2fa-method-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s;
}

.wings-2fa-method-option:hover {
	border-color: #9ca3af;
}

.wings-2fa-method-option input[type="radio"]:checked + .wings-2fa-method-info {
	color: #2563eb;
}

.wings-2fa-method-option:has(input[type="radio"]:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}

.wings-2fa-method-option input[type="radio"] {
	margin-top: 4px;
}

.wings-2fa-method-info {
	flex: 1;
}

.wings-2fa-method-info strong {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
}

.wings-2fa-method-info p {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.wings-2fa-recommended {
	color: #16a34a;
	font-weight: normal;
	font-size: 13px;
	margin-left: 4px;
}

/* Email Setup */
.wings-2fa-email-info {
	background: #f3f4f6;
	padding: 12px 16px;
	border-radius: 6px;
	margin: 16px 0;
}

.wings-2fa-qrcode {
	display: flex;
	justify-content: center;
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.wings-2fa-manual-entry {
	text-align: center;
	margin-top: 16px;
}

.wings-2fa-manual-entry code {
	display: block;
	background: #f3f4f6;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 16px;
	letter-spacing: 2px;
	margin: 8px 0;
	user-select: all;
}

/* Recovery Codes */
.wings-2fa-codes {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
	margin: 16px 0;
	font-family: monospace;
	font-size: 14px;
	line-height: 2;
	columns: 2;
	column-gap: 20px;
}

.wings-2fa-codes span {
	display: block;
}

.wings-2fa-recovery-actions {
	display: flex;
	gap: 8px;
	margin: 16px 0;
}

.wings-2fa-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
	cursor: pointer;
}

/* Messages */
.wings-2fa-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-top: 12px;
}

.wings-2fa-message.success {
	background: #dcfce7;
	color: #166534;
}

.wings-2fa-message.error {
	background: #fef2f2;
	color: #991b1b;
}

/* Modal */
.wings-2fa-modal-content {
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	max-width: 500px;
	margin: 0 auto;
}

.wings-2fa-modal-content h3 {
	margin-top: 0;
}

/* ==========================================================================
   Admin Settings Page
   ========================================================================== */

.settings_page_wings-2fa-settings .form-table th {
	width: 200px;
}

.settings_page_wings-2fa-settings .form-table td p.description {
	margin-top: 8px;
	color: #6b7280;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.wings-2fa-codes {
		columns: 1;
	}

	.wings-2fa-code-input {
		width: 100% !important;
		max-width: 200px !important;
	}
}
