html, body.login {
	min-height: 100vh;
}

body.login {
	background:
		radial-gradient(1200px 500px at -10% -10%, rgba(59, 130, 246, 0.22), transparent 55%),
		radial-gradient(1000px 600px at 110% 110%, rgba(15, 23, 42, 0.18), transparent 50%),
		linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
	color: #0f172a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 24px;
}

body.login div#login {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
	position: relative;
	z-index: 3;
}

.ag-login-shell {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

.ag-login-layout {
	display: grid;
	grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
	background: rgba(255,255,255,0.72);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.7);
	border-radius: 32px;
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
	overflow: hidden;
	min-height: 740px;
}

.ag-login-brand-panel {
	position: relative;
	background:
		linear-gradient(155deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.94) 55%, rgba(29, 78, 216, 0.9) 100%);
	color: #fff;
	padding: 48px;
	display: flex;
}

.ag-brand-inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	gap: 28px;
}

.ag-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.14);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	width: fit-content;
}

.ag-brand-logo {
	width: 82px;
	height: 82px;
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)),
		rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.18);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
	position: relative;
	margin: 22px 0 18px;
	overflow: hidden;
}

.ag-brand-logo::before {
	content: "";
	position: absolute;
	inset: 14px;
	border-radius: 18px;
	background-image: var(--ag-logo-url);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
}

.ag-brand-logo:empty::after {
	content: "AG";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: .04em;
}

.ag-brand-title {
	margin: 0;
	font-size: 40px;
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.03em;
	max-width: 420px;
}

.ag-brand-text {
	margin: 16px 0 0;
	max-width: 520px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255,255,255,0.82);
}

.ag-brand-points {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: auto;
}

.ag-point {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.95);
	font-weight: 600;
}

.ag-point-icon {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255,255,255,0.14);
	font-size: 15px;
	font-weight: 800;
}

.ag-login-form-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 42px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.84) 100%);
}

.ag-login-form-panel-inner {
	width: 100%;
	max-width: 460px;
}

.login h1 {
	display: none;
}

.login #login_error,
.login .message,
.login .success {
	border: 1px solid #d8e3f2;
	background: #f7fbff;
	color: #1e293b;
	border-radius: 18px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	padding: 14px 16px;
	margin: 0 0 16px;
}

.login form {
	background: #ffffff;
	border: 1px solid #e6edf5;
	border-radius: 28px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	padding: 30px;
	margin-top: 0;
}

.login form::before {
	content: var(--ag-panel-title);
	display: block;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: #0f172a;
	margin-bottom: 10px;
}

.login form::after {
	content: var(--ag-panel-text);
	display: block;
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 22px;
	white-space: pre-wrap;
}

.login label {
	display: block;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
	margin-bottom: 8px;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	min-height: 54px;
	height: 54px;
	border-radius: 16px;
	border: 1px solid #d9e2ec;
	background: #f8fbff;
	box-shadow: none;
	color: #0f172a;
	font-size: 15px;
	padding: 0 16px;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: #2563eb;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
	outline: none;
}

.login .forgetmenot {
	margin-top: 6px;
}

.login .forgetmenot label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 14px;
	color: #475569;
}

.login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	accent-color: #2563eb;
}

.wp-core-ui .button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	height: 54px;
	padding: 0 20px;
	border: none;
	border-radius: 16px;
	background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
	box-shadow: 0 14px 30px rgba(29, 78, 216, 0.22);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .01em;
	text-shadow: none;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(29, 78, 216, 0.25);
}

.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link {
	text-align: center;
	margin: 16px 0 0;
	padding: 0;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
	color: #475569;
	text-decoration: none;
	font-weight: 600;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
	color: #1d4ed8;
}

.login .dashicons {
	color: #64748b;
}

body.login.action-lostpassword #login > p.message + form::after,
body.login.action-resetpass #login > p.message + form::after,
body.login.action-rp #login > p.message + form::after {
	margin-top: 0;
}

@media (max-width: 1024px) {
	body.login {
		padding: 16px;
	}
	.ag-login-layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.ag-login-brand-panel {
		padding: 28px 24px;
	}
	.ag-brand-title {
		font-size: 32px;
		max-width: none;
	}
	.ag-brand-text {
		font-size: 15px;
	}
	.ag-login-form-panel {
		padding: 24px;
	}
}

@media (max-width: 640px) {
	body.login {
		padding: 10px;
		align-items: stretch;
	}
	.ag-login-layout {
		border-radius: 22px;
	}
	.ag-login-brand-panel {
		padding: 22px 18px;
	}
	.ag-brand-logo {
		width: 64px;
		height: 64px;
		border-radius: 18px;
		margin: 16px 0 12px;
	}
	.ag-brand-title {
		font-size: 26px;
	}
	.ag-brand-points {
		gap: 10px;
	}
	.ag-point {
		padding: 12px 14px;
		border-radius: 14px;
		font-size: 14px;
	}
	.ag-login-form-panel {
		padding: 14px;
	}
	.login form {
		padding: 20px 18px;
		border-radius: 22px;
	}
	.login form::before {
		font-size: 24px;
	}
}
