/**
 * FashionPoint Booking - Login, Registration & Profile Modal Styles
 *
 * @since 2.5.0
 */

/* ==========================================================================
	Login Modal
	========================================================================== */

.fp-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: none;
}

.fp-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.fp-modal__container {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 450px;
	width: 90%;
	max-height: 90vh;
	margin: 5vh auto;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.fp-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.fp-modal__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f1f1f;
}

.fp-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	color: #666666;
	transition: all 0.2s ease;
}

.fp-modal__close:hover {
	background: #f5f5f5;
	color: #1f1f1f;
}

.fp-modal__body {
	padding: 1.5rem;
	overflow-y: auto;
}

/* Login Form Styles */
.fp-login-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fp-login__toggle {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.fp-login__toggle-btn {
	flex: 1;
	padding: 0.75rem 1rem;
	background: #f5f5f5;
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #666666;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fp-login__toggle-btn:hover {
	background: #e5e5e5;
	color: #1f1f1f;
}

.fp-login__toggle-btn--active {
	background: #c9963a;
	border-color: #c9963a;
	color: #ffffff;
}

.fp-login__toggle-btn--active:hover {
	background: #b8862f;
}

/* Registration Modal Styles */
.fp-registration__steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.fp-registration__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
	position: relative;
}

.fp-registration__step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 16px;
	right: -50%;
	width: 100%;
	height: 2px;
	background: #e5e5e5;
	z-index: 0;
}

.fp-registration__step--active::after {
	background: #c9963a;
}

.fp-registration__step-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e5e5e5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.875rem;
	color: #666666;
	z-index: 1;
	transition: all 0.2s ease;
}

.fp-registration__step--active .fp-registration__step-number {
	background: #c9963a;
	color: #ffffff;
}

.fp-registration__step-label {
	font-size: 0.75rem;
	color: #666666;
	text-align: center;
}

.fp-registration__step--active .fp-registration__step-label {
	color: #c9963a;
	font-weight: 500;
}

.fp-registration__form {
	display: none;
}

.fp-registration__form--active {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fp-registration__info {
	background: #f5f5f5;
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.fp-registration__info p {
	margin: 0;
	color: #666666;
	font-size: 0.875rem;
	text-align: center;
}

.fp-registration__actions {
	display: flex;
	gap: 0.75rem;
}

.fp-registration__actions .fp-button--text {
	flex: 1;
}

.fp-registration__actions .fp-button--primary {
	flex: 2;
}

.fp-registration__message {
	margin-top: 1rem;
}

.fp-registration__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 2rem;
	text-align: center;
}

.fp-registration__success svg {
	color: #4caf50;
}

.fp-registration__success h3 {
	margin: 0;
	font-size: 1.25rem;
	color: #333333;
}

.fp-registration__success p {
	margin: 0;
	color: #666666;
}

.fp-form__group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
}

.fp-form__checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.fp-form__checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.fp-form__checkbox-text {
	font-size: 0.875rem;
	color: #333333;
}

/* Password Reset Modal Styles */
.fp-password-reset__toggle {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.fp-password-reset__toggle-btn {
	flex: 1;
	padding: 0.75rem 1rem;
	background: #f5f5f5;
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #666666;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fp-password-reset__toggle-btn:hover {
	background: #e5e5e5;
	color: #1f1f1f;
}

.fp-password-reset__toggle-btn--active {
	background: #c9963a;
	border-color: #c9963a;
	color: #ffffff;
}

.fp-password-reset__toggle-btn--active:hover {
	background: #b8862f;
}

.fp-password-reset__form {
	display: none;
}

.fp-password-reset__form--active {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fp-password-reset__info {
	background: #f5f5f5;
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.fp-password-reset__info p {
	margin: 0;
	color: #666666;
	font-size: 0.875rem;
	text-align: center;
}

.fp-password-reset__actions {
	display: flex;
	gap: 0.75rem;
}

.fp-password-reset__actions .fp-button--text {
	flex: 1;
}

.fp-password-reset__actions .fp-button--primary {
	flex: 2;
}

.fp-password-reset__message {
	margin-top: 1rem;
}

.fp-password-reset__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 2rem;
	text-align: center;
}

.fp-password-reset__success svg {
	color: #4caf50;
}

.fp-password-reset__success h3 {
	margin: 0;
	font-size: 1.25rem;
	color: #333333;
}

.fp-password-reset__success p {
	margin: 0;
	color: #666666;
}

/* User Profile Modal Styles */
.fp-modal__container--large {
	max-width: 800px;
}

.fp-profile__tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid #e5e5e5;
	padding-bottom: 0.5rem;
}

.fp-profile__tab {
	padding: 0.75rem 1.5rem;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 0.875rem;
	font-weight: 500;
	color: #666666;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: -0.5rem;
}

.fp-profile__tab:hover {
	color: #c9963a;
}

.fp-profile__tab--active {
	color: #c9963a;
	border-bottom-color: #c9963a;
}

.fp-profile__tab-content {
	display: none;
}

.fp-profile__tab-content--active {
	display: block;
}

.fp-profile__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 2rem;
	background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
	border-radius: 12px;
	margin-bottom: 2rem;
}

.fp-profile__avatar {
	width: 80px;
	height: 80px;
	background: #c9963a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.fp-profile__name {
	text-align: center;
}

.fp-profile__name h3 {
	margin: 0;
	font-size: 1.5rem;
	color: #333333;
}

.fp-profile__name p {
	margin: 0.25rem 0 0;
	color: #666666;
}

.fp-profile__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fp-profile__actions {
	display: flex;
	gap: 0.75rem;
}

.fp-profile__message {
	margin-top: 1rem;
}

.fp-profile__verification {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: #f5f5f5;
	border-radius: 8px;
}

.fp-profile__verification-step {
	margin-bottom: 1rem;
}

.fp-profile__verification-step:last-child {
	margin-bottom: 0;
}

.fp-profile__verification-step h4 {
	margin: 0 0 1rem;
	font-size: 1rem;
	color: #333333;
}

.fp-profile__loading {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 3rem;
	color: #c9963a;
}

.fp-profile__loading svg {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.fp-profile__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 3rem;
	color: #666666;
}

.fp-profile__empty svg {
	color: #e5e5e5;
}

.fp-profile__empty p {
	margin: 0;
}

.fp-profile__reservations-list,
.fp-profile__discounts-list,
.fp-profile__packages-list,
.fp-profile__wallet-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.fp-form__group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fp-form__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #333333;
}

.fp-form__required {
	color: #e74c3c;
	margin-left: 2px;
}

.fp-form__input {
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-form__input:focus {
	outline: none;
	border-color: #c9963a;
	box-shadow: 0 0 0 3px rgba(201, 150, 58, 0.1);
}

.fp-form__input::placeholder {
	color: #999999;
}

.fp-form__password-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.fp-form__password-wrapper .fp-form__input {
	padding-right: 3rem;
}

.fp-form__password-toggle {
	position: absolute;
	right: 0.75rem;
	padding: 0.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #666666;
	transition: color 0.2s ease;
}

.fp-form__password-toggle:hover {
	color: #1f1f1f;
}

.fp-form__password-toggle svg {
	display: block;
}

.fp-form__actions {
	margin-top: 0.5rem;
}

.fp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fp-button--primary {
	background: #c9963a;
	color: #ffffff;
}

.fp-button--primary:hover {
	background: #b8862f;
	transform: translateY(-1px);
}

.fp-button--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.fp-button--text {
	background: transparent;
	color: #c9963a;
	border: none;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

.fp-button--text:hover {
	background: rgba(201, 150, 58, 0.1);
}

.fp-button--full {
	width: 100%;
}

.fp-button__loader {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fp-button__loader svg {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.fp-message {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	margin-top: 1rem;
}

.fp-message--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.fp-message--error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.fp-login__footer {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e5e5;
	text-align: center;
}

.fp-login__text {
	margin: 0;
	font-size: 0.875rem;
	color: #666666;
}

.fp-login__link {
	color: #c9963a;
	text-decoration: none;
	font-weight: 500;
}

.fp-login__link:hover {
	text-decoration: underline;
}

/* Location Step Header */
.fp-booking .loc-step__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.fp-booking .loc-step__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f1f1f;
}

.fp-button--logged-in {
	color: #28a745 !important;
	cursor: pointer;
}

/* Booking Header Login Button */
.fp-booking__header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.fp-booking__login {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	color: #c9963a;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
}

.fp-booking__login:hover {
	background: rgba(201, 150, 58, 0.1);
}

.fp-booking__login-text {
	display: none;
}

@media (min-width: 768px) {
	.fp-booking__login-text {
		display: inline;
	}
}

.fp-booking__login.logged-in {
	color: #28a745;
}

.fp-booking__login.logged-in:hover {
	background: rgba(40, 167, 69, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.fp-modal__container {
		width: 95%;
		margin: 2.5vh auto;
		max-height: 95vh;
	}

	.fp-modal__header {
		padding: 1.25rem;
	}

	.fp-modal__body {
		padding: 1.25rem;
	}

	.fp-modal__title {
		font-size: 1.125rem;
	}
}
