/**
 * phpStudio.net
 * Web Development & Digital Solutions
 *
 * Developed by: Goran Grbić
 * Copyright © 2026 artgGrbic/ phpStudio.net
 * All rights reserved.
 */

.account-page {
	font-family: "Nunito", Arial, sans-serif;
	color: #4e5fa4;
	background: #fdeef4;
}

.account-page .account-main {
	min-width: 0;
}

.account-page .account-main-login {
	max-width: 580px;
}

.account-page .account-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	color: #9495c5;
}

.account-page .account-links,
.account-page .account-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.account-page .account-links a,
.account-page .account-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: #4e5fa4;
	font-weight: 600;
	text-decoration: none;
}

.account-page .account-links a {
	padding: 8px 12px;
	border: 1px solid #d4d7ed;
	border-radius: 12px;
	background: #e9eaf6;
}

.account-page .account-card {
	min-width: 0;
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid #d4d7ed;
	border-radius: 24px;
	background: #e9eaf6;
	overflow-wrap: anywhere;
}

.account-page .account-card h1,
.account-page .account-card h2,
.account-page .account-card h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.25;
}

.account-page .account-card h1 {
	margin: 0 0 26px;
	color: #e9609b;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
}

.account-page .account-card h1 .account-icon {
	width: 34px;
	height: 34px;
	flex-basis: 34px;
}

.account-page .account-card h2 {
	margin: 28px 0 18px;
	font-size: clamp(22px, 2.5vw, 28px);
	font-weight: 700;
	color: #4e5fa4;
}

.account-page .account-card h3 {
	margin: 24px 0 12px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #4e5fa4;
}

.account-page .account-card strong {
	font-weight: 700;
}

.account-page .account-error {
	margin-block: 20px;
	padding: 14px 18px;
	border: 1px solid #b45a78;
	border-radius: 14px;
	background: #fdeef4;
	color: #86334f;
}

.account-page .account-form {
	display: grid;
	gap: 20px;
}

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

.account-page .account-field label {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 700;
}

.account-page .account-field input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid #9495c5;
	border-radius: 12px;
	background: #ffffff;
	color: #4e5fa4;
	font: inherit;
	font-size: 1rem;
}

.account-page .account-form button {
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid #e9609b;
	border-radius: 12px;
	background: #e9609b;
	color: #fdeef4;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.account-page .account-login-links {
	display: grid;
	gap: 6px;
	margin-top: 22px;
}

.account-page .account-login-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: #4e5fa4;
	font-weight: 600;
	text-decoration: none;
}

.account-page .account-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 9px 14px;
	border: 1px solid #9495c5;
	border-radius: 12px;
	background: #ffffff;
	color: #4e5fa4;
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.account-page .account-secondary:hover,
.account-page .account-links a:hover {
	background: #fdeef4;
	text-decoration: none;
}

.account-page .account-data {
	margin-block: 24px 30px;
}

.account-page .account-data > div {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
	gap: 20px;
	padding-block: 14px;
	border-bottom: 1px solid #d4d7ed;
}

.account-page .account-data dt {
	font-weight: 700;
}

.account-page .account-data dd {
	margin: 0;
	min-width: 0;
}

.account-page .account-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid #d4d7ed;
	border-radius: 16px;
	background: #ffffff;
}

.account-page .account-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	text-align: left;
}

.account-page .account-table th,
.account-page .account-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #d4d7ed;
	vertical-align: top;
}

.account-page .account-table th {
	background: #f3f3fb;
	font-weight: 700;
}

.account-page .account-table tbody tr:last-child td {
	border-bottom: 0;
}

.account-page .account-table small {
	display: inline-block;
	max-width: 230px;
	margin-top: 6px;
	line-height: 1.5;
}

.account-page .account-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 9px;
	background: #fdeef4;
	color: #4e5fa4;
	font-size: 0.9rem;
	font-weight: 700;
}

.account-page .account-pagination {
	margin-top: 24px;
	margin-bottom: 0;
}

.account-page .account-note {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.account-page .account-logout {
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid #d4d7ed;
}

.account-page main :is(a, button, input, [tabindex]):focus-visible {
	outline: 3px solid #4e5fa4;
	outline-offset: 4px;
}

@media (max-width: 650px) {
	.account-page .account-card {
		padding: 20px;
		border-radius: 20px;
	}

	.account-page .account-data > div {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.account-page .account-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.account-page .account-table th,
	.account-page .account-table td {
		padding: 12px;
	}
}
/* Profil i sačuvane adrese. */
.profile-page .profile-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #e9609b;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
	line-height: 1.2;
}

.profile-page .profile-heading .account-icon {
	width: 34px;
	height: 34px;
	flex-basis: 34px;
}

.profile-page .profile-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-block: 20px;
	padding: 16px 20px;
	border: 1px solid #d4d7ed;
	border-radius: 16px;
	background: #e9eaf6;
	line-height: 1.6;
}

.profile-page .profile-section {
	margin-top: 28px;
}

.profile-page .profile-section > h2,
.profile-page .profile-address > h3 {
	margin-top: 0;
}

.profile-page .profile-section-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(23px, 2.5vw, 29px);
	font-weight: 700;
	color: #4e5fa4;
}

.profile-page .profile-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.profile-page .profile-field-wide {
	grid-column: 1 / -1;
}

.profile-page .account-form {
	margin-top: 20px;
}

.profile-page .account-form > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	justify-self: start;
}

.profile-page .account-form > button .account-icon {
	color: #fdeef4;
}

.profile-page .profile-inline-info {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}

.profile-page .profile-address-list {
	display: grid;
	gap: 20px;
}

.profile-page .profile-editor {
	margin-top: 20px;
	border-top: 1px solid #d4d7ed;
	padding-top: 12px;
}

.profile-page .profile-editor summary {
	min-height: 44px;
	padding-block: 10px;
	color: #4e5fa4;
	font-weight: 700;
	cursor: pointer;
}

.profile-page .profile-editor summary:focus-visible {
	outline: 3px solid #4e5fa4;
	outline-offset: 4px;
	border-radius: 8px;
}

.profile-page .profile-delete-form {
	display: grid;
	justify-items: start;
	gap: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #d4d7ed;
}

.profile-page .profile-delete-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
	cursor: pointer;
}

.profile-page .profile-delete-check input {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	margin: 2px 0 0;
	accent-color: #e9609b;
}

@media (max-width: 650px) {
	.profile-page .profile-fields {
		grid-template-columns: 1fr;
	}

	.profile-page .profile-field-wide {
		grid-column: auto;
	}

	.profile-page .account-form > button {
		width: 100%;
		justify-self: stretch;
	}

	.profile-page .profile-heading {
		align-items: flex-start;
	}
}
/* Promena lozinke. */
.password-page .password-main {
	max-width: 680px;
}

.password-page .account-card h1 {
	font-size: clamp(28px, 4vw, 40px);
}

.password-page .password-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-block: 22px;
	padding: 16px;
	border: 1px solid #d4d7ed;
	border-radius: 14px;
	background: #ffffff;
	line-height: 1.6;
}

.password-page .password-notice p {
	margin: 0;
}

.password-page .password-notice strong + p {
	margin-top: 8px;
}

.password-page .account-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.password-page .account-form button .account-icon {
	color: #fdeef4;
}

.password-page .account-field input[aria-invalid="true"] {
	border: 2px solid #a5325b;
}

.password-page .password-login {
	background: #e9609b;
	border-color: #e9609b;
	color: #fdeef4;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 650px) {
	.password-page .account-card h1 {
		align-items: flex-start;
	}
}
/* Registracija i potvrda email adrese. */
.registration-page .registration-main {
	max-width: 760px;
}

.registration-page .account-card h1 {
	font-size: clamp(28px, 4vw, 42px);
}

.registration-page .registration-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.registration-page .account-form {
	margin-top: 22px;
}

.registration-page .account-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.registration-page .account-form button .account-icon {
	color: #fdeef4;
}

.registration-page .registration-help {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
}

.registration-page .registration-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-block: 22px;
	padding: 16px;
	border: 1px solid #d4d7ed;
	border-radius: 14px;
	background: #ffffff;
	line-height: 1.6;
}

.registration-page .registration-resend {
	margin-top: 28px;
	padding-top: 6px;
	border-top: 1px solid #d4d7ed;
}

.registration-page .account-form .registration-resend-button {
	border-color: #9495c5;
	background: #ffffff;
	color: #4e5fa4;
}

.registration-page .account-form .registration-resend-button .account-icon {
	color: #9495c5;
}

.registration-page .registration-login {
	border-color: #e9609b;
	background: #e9609b;
	color: #fdeef4;
	font-weight: 700;
	text-decoration: none;
}

.registration-page .account-field input[aria-invalid="true"] {
	border: 2px solid #a5325b;
}

@media (max-width: 600px) {
	.registration-page .registration-fields {
		grid-template-columns: 1fr;
	}

	.registration-page .account-card h1 {
		align-items: flex-start;
	}
}
