/* ArtGalleri — prijava i registracija */

body.ag-site.ag-auth-page {
	background: #f5f5f7;
	color: #1d1d1f;
}

.ag-auth-page #content {
	padding-block: 44px 64px;
}

.ag-auth-page .ag-auth-card {
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	padding: 36px;
	border: 1px solid #e5e5eb;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 12px 40px rgb(0 0 0 / 5%);
}

.ag-auth-page .ag-auth-heading {
	text-align: center;
}

.ag-auth-page .ag-auth-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 16px;
	border-radius: 18px;
	background: #eef2fc;
	color: #647fc0;
}

.ag-auth-page .ag-auth-symbol-green {
	background: #edf7f0;
	color: #44835c;
}

.ag-auth-page .ag-auth-symbol .ag-icon {
	width: 29px;
	height: 29px;
}

.ag-auth-page .ag-auth-eyebrow {
	margin: 0 0 7px;
	color: #6e6e73;
	font-size: 13px;
	letter-spacing: 0.03em;
}

.ag-auth-page .ag-auth-heading h1 {
	max-width: none;
	margin: 0 0 13px;
	font-size: clamp(32px, 5vw, 42px);
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.ag-auth-page .ag-auth-intro {
	margin: 0;
	color: #6e6e73;
	font-size: 15px;
	line-height: 1.6;
}

.ag-auth-page .ag-auth-note {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-top: 24px;
	padding: 16px;
	border: 1px solid #d6eadd;
	border-radius: 16px;
	background: #eff8f2;
	color: #43664f;
}

.ag-auth-page .ag-auth-note .ag-icon {
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
	margin-top: 2px;
}

.ag-auth-page .ag-auth-note p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
}

.ag-auth-page .ag-auth-card .auth-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	width: 100%;
	max-width: none;
	margin-top: 28px;
}

.ag-auth-page .auth-form .field {
	display: grid;
	min-width: 0;
	gap: 8px;
}

.ag-auth-page .auth-form label {
	color: #424249;
	font-size: 14px;
	font-weight: 500;
}

.ag-auth-page .auth-form input:not([type="hidden"]) {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 50px;
	padding: 13px 15px;
	border: 1px solid #d2d2d7;
	border-radius: 13px;
	background: #fafafb;
	color: #1d1d1f;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.ag-auth-page .auth-form input::placeholder {
	color: #85858e;
}

.ag-auth-page .auth-form input:focus {
	border-color: #0071e3;
	background: #fff;
	outline: 3px solid rgb(0 113 227 / 16%);
	outline-offset: 1px;
}

.ag-auth-page .auth-form small {
	color: #6e6e73;
	font-size: 12px;
	line-height: 1.6;
}

.ag-auth-page .ag-auth-verification {
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
}

/* Glavno dugme */

.ag-auth-page .auth-form > button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 13px 22px;
	border: 0;
	border-radius: 999px;
	background: #0071e3;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}

/* Pomoćni linkovi */

.ag-auth-page a.ag-auth-forgot,
.ag-auth-page .ag-auth-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #526fae;
	font-size: 14px;
	text-decoration: none;
}

.ag-auth-page a.ag-auth-forgot {
	display: flex;
	width: fit-content;
	max-width: 100%;
	margin: 16px auto 0;
}

.ag-auth-page .ag-auth-forgot .ag-icon {
	width: 29px;
	height: 29px;
	flex: 0 0 29px;
	padding: 6px;
	border-radius: 9px;
	background: #fff2e3;
	color: #b97630;
}

.ag-auth-page .ag-auth-switch {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid #e7e7ec;
	text-align: center;
}

.ag-auth-page .ag-auth-switch p {
	margin: 0 0 5px;
	color: #6e6e73;
	font-size: 13px;
}

.ag-auth-page .ag-auth-switch .ag-icon {
	width: 29px;
	height: 29px;
	flex: 0 0 29px;
	padding: 6px;
	border-radius: 9px;
	background: #edf7f0;
	color: #44835c;
}

/* Postojeće poruke o greškama */

.ag-auth-page #content > .message-error {
	width: 100%;
	max-width: 560px;
	margin: 0 auto 20px;
	padding: 18px 22px;
	border: 1px solid #f0d6d6;
	border-radius: 18px;
	background: #fceeee;
	color: #913d3d;
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.ag-auth-page .ag-auth-card a:focus-visible,
.ag-auth-page .ag-auth-card button:focus-visible {
	outline: 3px solid #0071e3;
	outline-offset: 4px;
}

@media (hover: hover) {
	.ag-auth-page .auth-form > button[type="submit"]:hover {
		background: #0077ed;
	}

	.ag-auth-page a.ag-auth-forgot:hover,
	.ag-auth-page .ag-auth-switch a:hover {
		background: transparent;
		color: #0071e3;
		text-decoration: none;
		transform: none;
	}
}

@media (max-width: 760px) {
	body.ag-site.ag-auth-page {
		padding-bottom: calc(88px + env(safe-area-inset-bottom));
	}

	.ag-auth-page #content {
		padding-block: 24px 36px;
	}

	.ag-auth-page .ag-auth-card {
		padding: 24px 16px;
		border-radius: 22px;
	}

	.ag-auth-page .ag-auth-heading h1 {
		font-size: 34px;
	}

	.ag-auth-page .ag-bottom-nav {
		display: flex;
		position: fixed;
		inset: auto 0 0;
		z-index: 100;
		justify-content: space-around;
		gap: 4px;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid #e2e2e7;
		background: rgb(250 250 252 / 96%);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}

	.ag-auth-page .ag-bottom-link {
		display: flex;
		flex: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-height: 48px;
		padding: 4px;
		background: transparent;
		color: #606068;
		text-decoration: none;
	}

	.ag-auth-page .ag-bottom-link .ag-icon {
		width: 22px;
		height: 22px;
	}

	.ag-auth-page .ag-bottom-label {
		font-size: 10px;
		line-height: 1.3;
		white-space: nowrap;
	}

	.ag-auth-page .ag-bottom-link[aria-current="page"] {
		color: #0071e3;
	}
}