/* ==========================================================================
   PG Auth Styles
   FILE LOCATION: paper-generator/assets/css/pg-auth.css
   ========================================================================== */

.pg-auth-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 20px 14px 40px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #111827;
	box-sizing: border-box;
}

.pg-auth-wrap * {
	box-sizing: border-box;
}

/* ── Card ── */
.pg-auth-card {
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* ── Header ── */
.pg-auth-header {
	text-align: center;
	margin-bottom: 24px;
}

.pg-auth-icon {
	font-size: 40px;
	margin-bottom: 10px;
	display: block;
}

.pg-auth-title {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 6px;
}

.pg-auth-subtitle {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

/* ── Alert ── */
.pg-auth-alert {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 16px;
}

.pg-auth-alert-error {
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

.pg-auth-alert-success {
	background: #F0FDF4;
	color: #166534;
	border: 1px solid #BBF7D0;
}

.pg-auth-alert-warning {
	background: #FFFBEB;
	color: #92400E;
	border: 1px solid #FCD34D;
}

/* ── Fields ── */
.pg-auth-field {
	margin-bottom: 16px;
}

.pg-auth-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #374151;
	margin-bottom: 7px;
}

.pg-req {
	color: #dc2626;
}

.pg-auth-input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	color: #111827;
	background: #fff;
	transition: border-color .15s;
	-webkit-appearance: none;
	appearance: none;
}

.pg-auth-input:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

.pg-auth-input-wrap {
	position: relative;
}

.pg-auth-input-wrap .pg-auth-input {
	padding-right: 44px;
}

.pg-auth-eye {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	padding: 0;
	line-height: 1;
	color: #6b7280;
}

.pg-auth-hint {
	display: block;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 4px;
}

.pg-auth-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* ── Remember me ── */
.pg-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.pg-auth-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
}

.pg-auth-check input {
	width: 16px;
	height: 16px;
	accent-color: #6366f1;
}

/* ── Button ── */
.pg-auth-btn {
	width: 100%;
	padding: 13px;
	background: #4f46e5;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
}

.pg-auth-btn:hover {
	background: #4338ca;
}

.pg-auth-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* ── Links ── */
.pg-auth-links {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.pg-auth-links a {
	color: #4f46e5;
	font-weight: 700;
	text-decoration: none;
}

.pg-auth-links a:hover {
	text-decoration: underline;
}

/* ── Plan type buttons ── */
.pg-plan-type-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 4px;
}

.pg-plan-type-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 10px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	cursor: pointer;
	transition: all .15s;
	background: #f9fafb;
	-webkit-tap-highlight-color: transparent;
}

.pg-plan-type-btn:hover {
	border-color: #6366f1;
	background: #f5f3ff;
}

.pg-plan-type-btn.active {
	border-color: #6366f1;
	background: #f5f3ff;
}

.pg-plan-type-icon {
	font-size: 24px;
}

.pg-plan-type-label {
	font-size: 13px;
	font-weight: 700;
	color: #374151;
}

/* ── Duration grid ── */
.pg-duration-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.pg-duration-btn {
	padding: 10px 8px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	background: #fff;
	transition: all .15s;
	-webkit-tap-highlight-color: transparent;
}

.pg-duration-btn:hover {
	border-color: #6366f1;
	color: #4f46e5;
}

.pg-duration-btn.active {
	border-color: #6366f1;
	background: #f5f3ff;
	color: #4f46e5;
}

.pg-duration-price {
	display: block;
	font-size: 12px;
	font-weight: 800;
	color: #16a34a;
	margin-top: 3px;
}

/* ── Price box ── */
.pg-price-box {
	background: linear-gradient(135deg, #f5f3ff, #ede9fe);
	border: 1.5px solid #c4b5fd;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	margin-bottom: 16px;
}

.pg-price-box-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #7c3aed;
	margin-bottom: 6px;
}

.pg-price-box-amount {
	font-size: 28px;
	font-weight: 800;
	color: #4f46e5;
	margin-bottom: 4px;
}

.pg-price-box-note {
	font-size: 12px;
	color: #7c3aed;
}

/* ── WhatsApp button ── */
.pg-wa-btn {
	display: block;
	width: 100%;
	padding: 14px;
	background: #25d366;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background .15s;
	margin-bottom: 12px;
}

.pg-wa-btn:hover {
	background: #128c7e;
	color: #fff;
}

.pg-wa-btn-sm {
	display: inline-block;
	width: auto;
	padding: 10px 20px;
	font-size: 13px;
}

/* ── Confirmation box ── */
.pg-confirm-box {
	background: #f8fafc;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.pg-confirm-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
}

.pg-confirm-row:last-child {
	border-bottom: none;
}

.pg-confirm-label {
	color: #6b7280;
	font-weight: 600;
}

.pg-confirm-val {
	color: #111827;
	font-weight: 700;
}

/* ── WhatsApp section ── */
.pg-whatsapp-section {
	text-align: center;
}

.pg-wa-instruction {
	font-size: 14px;
	color: #374151;
	margin: 0 0 16px;
	line-height: 1.6;
}

/* ── My Account ── */
.pg-account-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1.5px solid #f1f5f9;
}

.pg-account-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pg-account-name {
	font-size: 17px;
	font-weight: 800;
	color: #111827;
}

.pg-account-email {
	font-size: 13px;
	color: #6b7280;
	margin-top: 2px;
}

/* ── Status card ── */
.pg-status-card {
	background: #f8fafc;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 20px;
}

.pg-status-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 14px;
}

.pg-status-active {
	background: #D1FAE5;
	color: #065F46;
}

.pg-status-pending {
	background: #FEF3C7;
	color: #92400E;
}

.pg-status-expired {
	background: #FEE2E2;
	color: #991B1B;
}

.pg-status-msg {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 12px;
	line-height: 1.5;
}

.pg-status-detail {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 13px;
}

.pg-status-detail:last-child {
	border-bottom: none;
}

.pg-status-detail span {
	color: #6b7280;
}

.pg-status-detail strong {
	color: #111827;
}

/* ── Account actions ── */
.pg-account-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.pg-account-action-btn {
	flex: 1;
	min-width: 120px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: opacity .15s;
	cursor: pointer;
}

.pg-account-action-btn:hover {
	opacity: .85;
}

.pg-account-action-quiz {
	background: #4f46e5;
	color: #fff;
}

.pg-account-action-logout {
	background: #f3f4f6;
	color: #374151;
}

/* ── Mobile ── */
@media (max-width: 480px) {
	.pg-auth-card {
		padding: 20px 16px;
	}
	.pg-auth-grid-2 {
		grid-template-columns: 1fr;
	}
	.pg-duration-grid {
		grid-template-columns: 1fr 1fr;
	}
	.pg-account-actions {
		flex-direction: column;
	}
	.pg-account-action-btn {
		min-width: auto;
	}
}