/* ==========================================================
   CHIRALA RESORTS
   UNIFIED ACCOUNT PORTAL
========================================================== */

.crms-auth-portal,
.crms-auth-portal *,
.crms-account-status,
.crms-account-status * {
	box-sizing: border-box;
}

.crms-auth-portal {
	--crms-auth-primary: #0f766e;
	--crms-auth-primary-dark: #0b5f59;
	--crms-auth-primary-soft: #e8f7f5;
	--crms-auth-accent: #f59e0b;
	--crms-auth-heading: #14213d;
	--crms-auth-text: #5c667a;
	--crms-auth-border: #e3e8ef;
	--crms-auth-surface: #ffffff;
	--crms-auth-background: #f5f8fa;
	--crms-auth-danger: #c24141;

	display: grid;
	grid-template-columns: minmax(340px, 0.85fr) minmax(500px, 1.15fr);
	min-height: 760px;
	width: min(1180px, calc(100% - 40px));
	margin: 60px auto;
	overflow: hidden;
	background: var(--crms-auth-surface);
	border: 1px solid rgba(20, 33, 61, 0.08);
	border-radius: 28px;
	box-shadow: 0 28px 80px rgba(20, 33, 61, 0.12);
}

.crms-auth-portal button,
.crms-auth-portal input {
	font: inherit;
}

.crms-auth-portal__visual {
	position: relative;
	display: flex;
	min-height: 100%;
	padding: 52px;
	color: #fff;
	background:
		linear-gradient(
			145deg,
			rgba(7, 70, 67, 0.92),
			rgba(15, 118, 110, 0.84)
		),
		url("../images/account-resort-background.jpg") center/cover no-repeat;
}

.crms-auth-portal__visual::before,
.crms-auth-portal__visual::after {
	position: absolute;
	content: "";
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.crms-auth-portal__visual::before {
	top: -90px;
	right: -110px;
	width: 310px;
	height: 310px;
}

.crms-auth-portal__visual::after {
	right: 55px;
	bottom: -120px;
	width: 260px;
	height: 260px;
}

.crms-auth-portal__visual-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1;
	flex-direction: column;
}

.crms-auth-portal__brand {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 13px;
	color: inherit;
	text-decoration: none;
}

.crms-auth-portal__brand:hover {
	color: inherit;
}

.crms-auth-portal__brand-mark {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	color: var(--crms-auth-primary);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: #fff;
	border-radius: 15px;
}

.crms-auth-portal__brand-text {
	display: flex;
	flex-direction: column;
}

.crms-auth-portal__brand-text strong {
	font-size: 18px;
	line-height: 1.2;
}

.crms-auth-portal__brand-text small {
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	letter-spacing: 0.04em;
}

.crms-auth-portal__intro {
	margin: auto 0;
	padding: 80px 0;
}

.crms-auth-portal__eyebrow {
	display: inline-flex;
	margin-bottom: 22px;
	padding: 8px 13px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
}

.crms-auth-portal__intro h1 {
	max-width: 470px;
	margin: 0;
	color: #fff;
	font-size: clamp(38px, 4vw, 58px);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.crms-auth-portal__intro p {
	max-width: 440px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.75;
}

.crms-auth-portal__benefits {
	display: grid;
	gap: 13px;
}

.crms-auth-benefit {
	display: flex;
	align-items: center;
	gap: 11px;
}

.crms-auth-benefit span {
	display: grid;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	place-items: center;
	color: var(--crms-auth-primary);
	font-size: 12px;
	font-weight: 800;
	background: #fff;
	border-radius: 50%;
}

.crms-auth-benefit p {
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 13px;
}

.crms-auth-portal__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px;
	background: var(--crms-auth-background);
}

.crms-auth-card {
	width: min(100%, 560px);
}

.crms-auth-card__header {
	margin-bottom: 30px;
	text-align: center;
}

.crms-auth-card__header h2 {
	margin: 0;
	color: var(--crms-auth-heading);
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.crms-auth-card__header p {
	margin: 10px 0 0;
	color: var(--crms-auth-text);
	font-size: 14px;
}

.crms-auth-role-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.crms-auth-role-tab {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 76px;
	padding: 14px 17px;
	color: var(--crms-auth-heading);
	text-align: left;
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--crms-auth-border);
	border-radius: 16px;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.crms-auth-role-tab:hover {
	border-color: rgba(15, 118, 110, 0.35);
	transform: translateY(-1px);
}

.crms-auth-role-tab.is-active {
	background: var(--crms-auth-primary-soft);
	border-color: var(--crms-auth-primary);
	box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.crms-auth-role-tab__icon {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	place-items: center;
	font-size: 18px;
	background: #fff;
	border-radius: 12px;
}

.crms-auth-role-tab > span:last-child {
	display: flex;
	flex-direction: column;
}

.crms-auth-role-tab strong {
	font-size: 14px;
	line-height: 1.3;
}

.crms-auth-role-tab small {
	margin-top: 3px;
	color: var(--crms-auth-text);
	font-size: 11px;
}

.crms-auth-view-tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 28px;
	padding: 5px;
	background: #e9eef3;
	border-radius: 13px;
}

.crms-auth-view-tab {
	padding: 11px 16px;
	color: var(--crms-auth-text);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 9px;
}

.crms-auth-view-tab.is-active {
	color: var(--crms-auth-heading);
	background: #fff;
	box-shadow: 0 4px 14px rgba(20, 33, 61, 0.08);
}

.crms-auth-form-panel {
	display: none;
}

.crms-auth-form-panel.is-active {
	display: block;
	animation: crmsAuthPanelIn 0.24s ease;
}

@keyframes crmsAuthPanelIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.crms-auth-form {
	display: grid;
	gap: 18px;
}

.crms-auth-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.crms-auth-field {
	display: grid;
	gap: 8px;
}

.crms-auth-field label,
.crms-auth-label-row label {
	color: var(--crms-auth-heading);
	font-size: 12px;
	font-weight: 700;
}

.crms-auth-field input {
	width: 100%;
	min-height: 50px;
	padding: 0 15px;
	color: var(--crms-auth-heading);
	background: #fff;
	border: 1px solid var(--crms-auth-border);
	border-radius: 12px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.crms-auth-field input::placeholder {
	color: #9aa5b5;
}

.crms-auth-field input:focus {
	border-color: var(--crms-auth-primary);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.crms-auth-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.crms-auth-label-row a {
	color: var(--crms-auth-primary);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.crms-auth-password {
	position: relative;
}

.crms-auth-password input {
	padding-right: 65px;
}

.crms-password-toggle {
	position: absolute;
	top: 50%;
	right: 10px;
	padding: 7px;
	color: var(--crms-auth-primary);
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	background: transparent;
	border: 0;
	transform: translateY(-50%);
}

.crms-auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 22px;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 12px;
	transition:
		background 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.crms-auth-button--primary {
	color: #fff;
	background: var(--crms-auth-primary);
	box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.crms-auth-button--primary:not(:disabled):hover {
	color: #fff;
	background: var(--crms-auth-primary-dark);
	transform: translateY(-1px);
}

.crms-auth-button--secondary {
	color: var(--crms-auth-heading);
	background: #fff;
	border-color: var(--crms-auth-border);
}

.crms-auth-button:disabled,
.crms-google-button:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.crms-auth-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0;
	color: #8c98a9;
	font-size: 11px;
}

.crms-auth-divider::before,
.crms-auth-divider::after {
	flex: 1;
	height: 1px;
	content: "";
	background: var(--crms-auth-border);
}

.crms-google-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	width: 100%;
	min-height: 50px;
	color: var(--crms-auth-heading);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--crms-auth-border);
	border-radius: 12px;
}

.crms-google-button__icon {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	color: #4285f4;
	font-weight: 800;
	background: #f6f8fb;
	border-radius: 50%;
}

.crms-auth-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--crms-auth-text);
	font-size: 11px;
	line-height: 1.55;
	cursor: pointer;
}

.crms-auth-checkbox input {
	flex: 0 0 auto;
	margin-top: 3px;
	accent-color: var(--crms-auth-primary);
}

.crms-vendor-message {
	margin-bottom: 20px;
	padding: 15px 17px;
	background: var(--crms-auth-primary-soft);
	border: 1px solid rgba(15, 118, 110, 0.15);
	border-radius: 13px;
}

.crms-vendor-message strong {
	color: var(--crms-auth-heading);
	font-size: 13px;
}

.crms-vendor-message p {
	margin: 5px 0 0;
	color: var(--crms-auth-text);
	font-size: 11px;
	line-height: 1.6;
}

.crms-auth-coming-soon {
	margin: 15px 0 0;
	color: #8a95a5;
	font-size: 10px;
	line-height: 1.5;
	text-align: center;
}

.crms-auth-notice {
	margin-bottom: 18px;
	padding: 13px 15px;
	font-size: 12px;
	line-height: 1.5;
	border-radius: 10px;
}

.crms-auth-notice.is-error {
	color: #8f2525;
	background: #fff0f0;
	border: 1px solid #f2caca;
}

.crms-auth-notice.is-success {
	color: #17643f;
	background: #edf9f2;
	border: 1px solid #c6ead5;
}

.crms-auth-card__footer {
	margin-top: 28px;
	text-align: center;
}

.crms-auth-card__footer p {
	margin: 0;
	color: #8c97a7;
	font-size: 10px;
	line-height: 1.6;
}

.crms-account-status {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 600px;
	padding: 50px 20px;
	background: #f5f8fa;
}

.crms-account-status__card {
	width: min(100%, 560px);
	padding: 50px;
	text-align: center;
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(20, 33, 61, 0.1);
}

.crms-account-status__icon {
	display: grid;
	width: 62px;
	height: 62px;
	margin: 0 auto 22px;
	place-items: center;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	background: #0f766e;
	border-radius: 50%;
}

.crms-account-status__card h2 {
	margin: 0;
	color: #14213d;
	font-size: 30px;
}

.crms-account-status__card p {
	margin: 14px 0 26px;
	color: #5c667a;
}

.crms-account-status__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

@media (max-width: 980px) {
	.crms-auth-portal {
		grid-template-columns: 1fr;
	}

	.crms-auth-portal__visual {
		min-height: 430px;
	}

	.crms-auth-portal__intro {
		padding: 70px 0;
	}

	.crms-auth-portal__benefits {
		display: none;
	}
}

@media (max-width: 640px) {
	.crms-auth-portal {
		width: 100%;
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.crms-auth-portal__visual {
		min-height: 340px;
		padding: 30px 22px;
	}

	.crms-auth-portal__intro {
		padding: 52px 0 20px;
	}

	.crms-auth-portal__intro h1 {
		font-size: 36px;
	}

	.crms-auth-portal__intro p {
		font-size: 14px;
	}

	.crms-auth-portal__panel {
		padding: 38px 20px 50px;
	}

	.crms-auth-card__header h2 {
		font-size: 28px;
	}

	.crms-auth-role-tabs {
		gap: 8px;
	}

	.crms-auth-role-tab {
		min-height: 70px;
		padding: 12px;
	}

	.crms-auth-role-tab__icon {
		display: none;
	}

	.crms-auth-form-grid {
		grid-template-columns: 1fr;
	}

	.crms-account-status__card {
		padding: 36px 22px;
	}

	.crms-account-status__actions {
		flex-direction: column;
	}

	.crms-account-status__actions .crms-auth-button {
		width: 100%;
	}
}