.aippa-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 24px 14px;
	color: #111827;
	font-family: inherit;
}

.aippa-shell *,
.aippa-shell *::before,
.aippa-shell *::after {
	box-sizing: border-box;
}

.aippa-auth-card,
.aippa-profile-card {
	overflow: hidden;
	width: 100%;
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(255, 122, 24, 0.12), rgba(26, 188, 156, 0.1) 45%, rgba(47, 112, 237, 0.1)),
		#fff;
	box-shadow: 0 20px 60px rgba(17, 24, 39, 0.09);
}

.aippa-auth-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 26px;
}

.aippa-profile-card {
	padding: 28px;
}

.aippa-brand,
.aippa-profile-head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 24px;
}

.aippa-mark {
	display: grid;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	place-items: center;
	border-radius: 18px;
	background: linear-gradient(135deg, #ff7a18, #2f70ed);
	color: #fff;
	font-size: 24px;
	font-weight: 800;
}

.aippa-profile-head img {
	display: block;
	flex: 0 0 86px;
	width: 86px;
	height: 86px;
	border: 4px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.aippa-brand h2,
.aippa-profile-head h2 {
	margin: 0;
	color: #0f172a;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
}

.aippa-brand p,
.aippa-profile-head p,
.aippa-danger p {
	margin: 8px 0 0;
	color: #4b5563;
	font-size: 16px;
}

.aippa-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px;
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
}

.aippa-tabs label {
	margin: 0;
	padding: 12px 14px;
	border-radius: 7px;
	color: #334155;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.aippa-google-auth {
	margin: 8px 0 20px;
}

.aippa-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

.aippa-divider::before,
.aippa-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(15, 23, 42, 0.12);
}

.aippa-google-auth .google-login-btn {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 360px;
	height: 50px !important;
	margin: 0 auto 4px !important;
	border: 1px solid rgba(15, 23, 42, 0.14) !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, 0.92) !important;
	color: #111827 !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.aippa-google-auth .google-login-btn:hover {
	transform: translateY(-1px);
	border-color: rgba(47, 112, 237, 0.35) !important;
	box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12) !important;
	text-decoration: none;
}

.aippa-google-auth .google-login-btn .google-icon {
	width: 50px !important;
	height: 50px !important;
	border-right: 1px solid rgba(15, 23, 42, 0.1) !important;
	border-radius: 8px 0 0 8px;
}

.aippa-google-auth .google-login-btn img {
	width: 20px !important;
	height: 20px !important;
}

.aippa-google-auth .google-login-btn span {
	font-weight: 900 !important;
}

.aippa-tab-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

#aippa-tab-login:checked ~ .aippa-tabs label[for="aippa-tab-login"],
#aippa-tab-register:checked ~ .aippa-tabs label[for="aippa-tab-register"] {
	background: #0f172a;
	color: #fff;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.aippa-panel {
	display: none;
}

#aippa-tab-login:checked ~ .aippa-login-panel,
#aippa-tab-register:checked ~ .aippa-register-panel {
	display: block;
}

.aippa-form {
	display: grid;
	gap: 16px;
	width: 100%;
}

.aippa-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aippa-form label {
	display: grid;
	gap: 7px;
	min-width: 0;
	margin: 0;
	color: #111827;
	font-size: 15px;
	font-weight: 800;
}

.aippa-form input,
.aippa-form select {
	width: 100%;
	min-width: 0;
	height: 48px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.86);
	color: #0f172a;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	padding: 0 14px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aippa-form input[type="file"] {
	height: auto;
	padding: 12px;
}

.aippa-form input:focus,
.aippa-form select:focus {
	border-color: #2f70ed;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(47, 112, 237, 0.14);
}

.aippa-form input[readonly] {
	color: #64748b;
	background: rgba(241, 245, 249, 0.86);
}

.aippa-form small {
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.aippa-full {
	grid-column: 1 / -1;
}

.aippa-form button {
	min-height: 50px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, #ff7a18, #ffd166);
	color: #111827;
	font: inherit;
	font-size: 16px;
	font-weight: 900;
	padding: 13px 18px;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(255, 122, 24, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aippa-form button:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 28px rgba(255, 122, 24, 0.26);
}

.aippa-link-button,
.aippa-secondary-button,
.aippa-logout-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.82);
	color: #0f172a;
	font-size: 15px;
	font-weight: 900;
	text-decoration: none;
	padding: 11px 16px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aippa-link-button:hover,
.aippa-secondary-button:hover,
.aippa-logout-form button:hover {
	border-color: rgba(47, 112, 237, 0.42);
	background: #fff;
	color: #0f172a;
	text-decoration: none;
	transform: translateY(-1px);
}

.aippa-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

.aippa-logout-form {
	margin: 0;
}

.aippa-logout-card {
	text-align: center;
}

.aippa-notice {
	margin: 0 0 18px;
	padding: 13px 15px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
}

.aippa-notice-success {
	border: 1px solid rgba(16, 185, 129, 0.26);
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
}

.aippa-notice-error {
	border: 1px solid rgba(239, 68, 68, 0.26);
	background: rgba(239, 68, 68, 0.1);
	color: #b91c1c;
}

.aippa-danger {
	margin-top: 28px;
	padding: 20px;
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.74);
}

.aippa-danger h3 {
	margin: 0;
	color: #991b1b;
	font-size: 22px;
}

.aippa-delete-form {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	margin-top: 16px;
}

.aippa-form .aippa-danger-button {
	background: #dc2626;
	color: #fff;
	box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18);
}

.aippa-form .aippa-danger-button:hover {
	box-shadow: 0 16px 28px rgba(220, 38, 38, 0.24);
}

.aippa-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.aippa-modal:target {
	display: flex;
}

.aippa-modal-open {
	display: flex;
}

.aippa-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(6px);
}

.aippa-modal-card {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: calc(100vh - 36px);
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 8px;
	background: #fff;
	padding: 24px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.aippa-modal-card h3 {
	margin: 0 34px 8px 0;
	color: #0f172a;
	font-size: 26px;
	line-height: 1.15;
}

.aippa-modal-card p {
	margin: 0 0 18px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.55;
}

.aippa-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 50%;
	background: #f1f5f9;
	color: #0f172a;
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.aippa-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
	text-decoration: none;
}

.aippa-error-modal-card {
	text-align: center;
}

.aippa-error-modal-card h3 {
	margin-right: 0;
	color: #991b1b;
}

.aippa-modal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 8px;
	background: linear-gradient(135deg, #ff7a18, #ffd166);
	color: #111827;
	font-size: 16px;
	font-weight: 900;
	padding: 12px 22px;
	text-decoration: none;
	box-shadow: 0 12px 24px rgba(255, 122, 24, 0.22);
}

.aippa-modal-button:hover {
	color: #111827;
	text-decoration: none;
	transform: translateY(-1px);
}

@media (max-width: 720px) {
	.aippa-shell {
		padding: 14px 10px;
	}

	.aippa-auth-card,
	.aippa-profile-card {
		padding: 18px;
		border-radius: 8px;
	}

	.aippa-brand,
	.aippa-profile-head {
		align-items: flex-start;
		gap: 14px;
	}

	.aippa-mark {
		flex-basis: 54px;
		width: 54px;
		height: 54px;
		border-radius: 15px;
		font-size: 20px;
	}

	.aippa-profile-head img {
		flex-basis: 68px;
		width: 68px;
		height: 68px;
	}

	.aippa-grid,
	.aippa-delete-form {
		grid-template-columns: 1fr;
	}

	.aippa-actions {
		display: grid;
	}

	.aippa-secondary-button,
	.aippa-logout-form button {
		width: 100%;
	}

	.aippa-brand h2,
	.aippa-profile-head h2 {
		font-size: 30px;
	}

	.aippa-brand p,
	.aippa-profile-head p,
	.aippa-danger p {
		font-size: 14px;
	}
}

@media (max-width: 420px) {
	.aippa-brand,
	.aippa-profile-head {
		display: grid;
	}

	.aippa-tabs label {
		padding: 11px 8px;
		font-size: 14px;
	}

	.aippa-form input,
	.aippa-form select,
	.aippa-form button {
		min-height: 46px;
		font-size: 15px;
	}
}
