/* =============================================================================
   ARMember Password Change v1.0.1 – Frontend form styles
   ============================================================================= */

/* ── Wrapper ────────────────────────────────────────────────────────────────── */
.armpc-wrap {
	max-width: 600px;
	margin: 20px auto;
	font-family: Poppins, "Trebuchet MS", sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* ── Panel (one at a time visible) ─────────────────────────────────────────── */
.armpc-panel {
	background: #ffffff;
	border: 1px solid #dde1e7;
	border-radius: 10px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
.armpc-title {
	margin-bottom: 32px !important;
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
}

.armpc-desc {
	margin: 0 0 1.6rem;
	font-size: 16px;
	color: #6b7280;
	line-height: 1.6;
}

/* ── Field ──────────────────────────────────────────────────────────────────── */
.armpc-field {
	margin-bottom: 1.1rem;
}

.armpc-field label {
	display: block;
	margin-bottom: .35rem;
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	letter-spacing: .01em;
	text-transform: uppercase;
}

.armpc-field input[type="text"],
.armpc-field input[type="password"] {
	display: block;
	width: 100%;
	padding: .6rem .85rem;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	font-size: 16px;
	color: #111827;
	background: #f9fafb;
	box-sizing: border-box;
	transition: border-color .18s, box-shadow .18s, background .18s;
	outline: none;
	-webkit-appearance: none;
}

.armpc-field input[type="text"]:focus,
.armpc-field input[type="password"]:focus {
	border-color: #2563eb;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* ── Actions row ────────────────────────────────────────────────────────────── */
.armpc-actions {
	display: flex;
	gap: .65rem;
	margin-top: 1.6rem;
	flex-wrap: wrap;
	align-items: center;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.armpc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: 15px 60px !important;
	border: none;
	border-radius: 6px;
	font-size: 18px;
	cursor: pointer;
	transition: background .18s, opacity .18s, transform .08s;
	white-space: nowrap;
	line-height: 1;
	margin: 0 auto;
}

.armpc-btn:active { transform: scale(.98); }

.armpc-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

.armpc-btn--primary {
	background: #FD4343 !important;
	color: #fff;
}

.armpc-btn--primary:hover:not(:disabled) { background: #1d4ed8; }

.armpc-btn--secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1.5px solid #d1d5db;
}

.armpc-btn--secondary:hover:not(:disabled) { background: #e5e7eb; }

/* ── Spinner on loading ─────────────────────────────────────────────────────── */
.armpc-btn.is-loading::after {
	content: '';
	width: 13px;
	height: 13px;
	border: 2px solid rgba(255,255,255,.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: armpc-spin .65s linear infinite;
}

.armpc-btn--secondary.is-loading::after {
	border-color: rgba(0,0,0,.2);
	border-top-color: #374151;
}

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

/* ── Messages ───────────────────────────────────────────────────────────────── */
.armpc-msg {
	padding: .75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1.1rem;
	font-size: 16px;
	line-height: 1.55;
}

.armpc-msg--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}

.armpc-msg--success {
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #166534;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 500px) {
	.armpc-panel   { padding: 1.4rem 1.1rem; }
	.armpc-actions { flex-direction: column; }
	.armpc-btn     { width: 100%; justify-content: center; }
}
