/* ==========================================================================
   Alfa Zeka — Davet / Aktivasyon ekranları (premium kompozisyon)
   Panel paletiyle uyumlu (mor vurgu, lacivert, yeşil onay). Font: Manrope (self-host, SIL OFL).
   Mobil öncelikli: tek sütun, ince davet şeridi. >= 820 px: kart içinde 2 kolon (özet + form).
   ========================================================================== */

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('/fonts/manrope/manrope-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('/fonts/manrope/manrope-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--act-bg: #f3f4fb;
	--act-card: #ffffff;
	--act-line: #e6e8f2;
	--act-line-s: #d6d9e8;
	--act-text: #14152b;
	--act-text-2: #454866;
	--act-muted: #667089;
	--act-accent: #6d4aff;
	--act-accent-ink: #4a2fd0;
	--act-accent-50: #f3f0ff;
	--act-accent-100: #e7e1ff;
	--act-navy: #16123f;
	--act-navy-2: #2a1f7a;
	--act-ok: #16a34a;
	--act-ok-ink: #0f7a37;
	--act-ok-50: #e8f8ee;
	--act-warn-ink: #8f530c;
	--act-warn-50: #fff3df;
	--act-danger: #dc2626;
	--act-danger-ink: #a3222b;
	--act-danger-50: #fdeaea;
	--act-radius: 20px;
	--act-radius-md: 14px;
	--act-radius-sm: 11px;
	--act-font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.act-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	color: var(--act-text);
	font-family: var(--act-font);
	font-size: 15.5px;
	line-height: 1.55;
	font-feature-settings: "cv11", "ss01";
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background:
		radial-gradient(1100px 520px at 12% -10%, rgba(109, 74, 255, .16), transparent 62%),
		radial-gradient(900px 480px at 100% 110%, rgba(22, 163, 74, .10), transparent 60%),
		var(--act-bg);
}
.act-body *, .act-body *::before, .act-body *::after { box-sizing: border-box; }

.act-shell {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;   /* kısa içerik: dikey + yatay ortala; uzunsa kabuk büyür, doğal kaydırma */
	justify-content: center;
	padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

/* ---- Kart ---------------------------------------------------------------- */
.act-card {
	width: 100%;
	max-width: 520px;
	display: flex;
	flex-direction: column;
	background: var(--act-card);
	border: 1px solid var(--act-line);
	border-radius: var(--act-radius);
	box-shadow: 0 24px 60px -20px rgba(22, 18, 63, .22), 0 2px 6px rgba(22, 18, 63, .05);
	overflow: hidden;
}

/* ---- Davet özeti (mobil: ince şerit) ------------------------------------- */
.act-aside {
	position: relative;
	color: #fff;
	padding: 14px 16px 16px;
	background:
		radial-gradient(260px 160px at 100% 0%, rgba(167, 139, 250, .45), transparent 70%),
		linear-gradient(140deg, var(--act-navy) 0%, var(--act-navy-2) 100%);
	overflow: hidden;
}
.act-aside::after {
	content: "";
	position: absolute;
	right: -46px;
	bottom: -70px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 26px solid rgba(255, 255, 255, .06);
	pointer-events: none;
}
.act-aside__brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.act-aside__logo { width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 4px; object-fit: contain; flex-shrink: 0; }
.act-aside__name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }

.act-invite { position: relative; z-index: 1; margin-top: 12px; }
.act-invite__eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.act-invite__tenant { margin: 2px 0 8px; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; }
.act-invite__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.act-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .13);
	border: 1px solid rgba(255, 255, 255, .18);
	font-size: 13px;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.act-chip svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .85; }
.act-chip--role { background: #fff; color: var(--act-navy-2); border-color: #fff; font-weight: 800; }

.act-aside__foot { display: none; position: relative; z-index: 1; }

/* ---- İçerik kolonu ------------------------------------------------------- */
.act-content { padding: 20px 16px 22px; min-width: 0; }

.act-title { margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.act-lead { margin: 0 0 16px; color: var(--act-text-2); font-size: 15px; line-height: 1.55; }

.act-status {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	margin: 0 0 12px;
	background: var(--act-accent-50);
	color: var(--act-accent);
}
.act-status svg { width: 24px; height: 24px; }
.act-status--ok { background: var(--act-ok-50); color: var(--act-ok-ink); }
.act-status--warn { background: var(--act-warn-50); color: var(--act-warn-ink); }
.act-status--error { background: var(--act-danger-50); color: var(--act-danger-ink); }

/* Uyarılar */
.act-alert { margin: 0 0 14px; padding: 11px 13px; border-radius: var(--act-radius-sm); border: 1px solid; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.act-alert--error { color: var(--act-danger-ink); background: var(--act-danger-50); border-color: #f4b9bc; }
.act-alert--ok { color: var(--act-ok-ink); background: var(--act-ok-50); border-color: #a6e4c3; }
.act-alert--info { color: var(--act-accent-ink); background: var(--act-accent-50); border-color: #d6ccff; }
.act-alert--warn { color: var(--act-warn-ink); background: var(--act-warn-50); border-color: #f3d29a; }
.act-demo-code { display: block; margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: .28em; color: var(--act-text); }

/* ---- Bölümler (doğrulama / şifre) ---------------------------------------- */
.act-section { margin: 0 0 14px; padding: 14px; border: 1px solid var(--act-line); border-radius: var(--act-radius-md); background: #fbfbff; }
.act-section__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.act-step { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--act-accent), #8b5cf6); flex-shrink: 0; }
.act-section__title { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }

/* Alanlar */
.act-field { margin: 0 0 12px; }
.act-section .act-field:last-child { margin-bottom: 0; }
.act-label { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: var(--act-text); }
.act-hint { margin: 6px 0 0; font-size: 13px; color: var(--act-muted); }
.act-input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--act-line-s);
	border-radius: var(--act-radius-sm);
	background: #fff;
	color: var(--act-text);
	font: inherit;
	font-size: 16px; /* iOS yakınlaştırmasını önler */
	font-weight: 500;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.act-input:hover { border-color: #b9bdd3; }
.act-input:focus { outline: none; border-color: var(--act-accent); box-shadow: 0 0 0 4px rgba(109, 74, 255, .16); }
.act-input[readonly], .act-input:disabled { background: #f1f2f8; color: var(--act-muted); }
.act-input.input-validation-error { border-color: var(--act-danger); background: #fffafa; }
.act-input--code {
	min-height: 58px;
	text-align: center;
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: .42em;
	padding-left: calc(14px + .42em);
	border-color: var(--act-accent-100);
	background: #fff;
}
.act-error { display: block; margin: 6px 0 0; font-size: 13px; color: var(--act-danger-ink); font-weight: 700; }
.act-error:empty { display: none; }

.act-pw { position: relative; }
.act-pw .act-input { padding-right: 50px; }
.act-pw__toggle { position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent; color: var(--act-muted); cursor: pointer; border-radius: 0 var(--act-radius-sm) var(--act-radius-sm) 0; }
.act-pw__toggle:hover { color: var(--act-text); }
.act-pw__toggle:focus-visible { outline: 3px solid rgba(109, 74, 255, .4); outline-offset: -3px; }
.act-pw__toggle svg { width: 20px; height: 20px; }

.act-rules { margin: 8px 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--act-muted); }
.act-rules li { padding-left: 18px; position: relative; }
.act-rules li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #c8cbdd; }
.act-rules li.is-ok { color: var(--act-ok-ink); font-weight: 600; }
.act-rules li.is-ok::before { background: var(--act-ok); }

.act-consent { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 13px 14px; border: 1.5px solid var(--act-line-s); border-radius: var(--act-radius-md); background: #fbfbff; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.act-consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--act-accent); }

/* Butonlar */
.act-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.act-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; min-height: 50px; padding: 12px 18px;
	border-radius: var(--act-radius-sm); border: 1.5px solid transparent;
	font: inherit; font-size: 15.5px; font-weight: 800; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.act-btn:focus-visible { outline: 3px solid rgba(109, 74, 255, .45); outline-offset: 2px; }
.act-btn--primary { background: linear-gradient(135deg, #6d4aff, #5b3bf0); color: #fff; box-shadow: 0 10px 22px -8px rgba(109, 74, 255, .65); }
.act-btn--primary:hover { background: linear-gradient(135deg, #5f3cf5, #4a2fd0); }
.act-btn--primary:active { transform: translateY(1px); box-shadow: 0 5px 12px -6px rgba(109, 74, 255, .6); }
.act-btn--ghost { background: #fff; color: var(--act-text); border-color: var(--act-line-s); }
.act-btn--ghost:hover { background: var(--act-bg); }
.act-btn--wa { background: #128c4a; color: #fff; }
.act-btn--sm { min-height: 40px; font-size: 14px; font-weight: 700; padding: 7px 14px; }
.act-btn--auto { width: auto; }
.act-btn[disabled], .act-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.act-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.act-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: act-spin .8s linear infinite; }
.act-btn--ghost.is-loading::after { border-color: rgba(0, 0, 0, .15); border-top-color: var(--act-accent); }
@keyframes act-spin { to { transform: rotate(360deg); } }

.act-codebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 10px 0 0; font-size: 13.5px; color: var(--act-muted); }
.act-countdown { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--act-accent-50); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--act-accent-ink); }
.act-countdown.is-expired { background: var(--act-danger-50); color: var(--act-danger-ink); }

.act-foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--act-muted); }
.act-foot a { color: var(--act-accent-ink); font-weight: 700; }
.act-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Yardımcılar */
.act-lead--tight { margin: 0 0 14px; }
.act-field--tight { margin-bottom: 6px; }
.act-gap { height: 0; }

/* ---- Tablet -------------------------------------------------------------- */
@media (min-width: 600px) {
	.act-shell { padding: 28px 20px; }
	.act-aside { padding: 18px 26px 20px; }
	.act-invite__tenant { font-size: 21px; }
	.act-content { padding: 26px 28px 28px; }
	.act-title { font-size: 26px; }
	.act-actions { flex-direction: row-reverse; flex-wrap: wrap; }
	.act-actions .act-btn { width: auto; flex: 1 1 180px; }
}

/* ---- Masaüstü: kart içinde iki kolon (özet + form) ------------------------ */
@media (min-width: 860px) {
	.act-card { max-width: 800px; flex-direction: row; min-height: 560px; }
	.act-aside {
		flex: 0 0 280px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 28px 26px;
	}
	.act-aside::after { right: -60px; bottom: -80px; width: 240px; height: 240px; border-width: 34px; }
	.act-aside__logo { width: 40px; height: 40px; }
	.act-aside__name { font-size: 18px; }
	.act-invite { margin-top: 34px; }
	.act-invite__tenant { font-size: 23px; margin-bottom: 12px; }
	.act-invite__meta { flex-direction: column; align-items: flex-start; }
	.act-aside__foot { display: block; margin-top: 28px; }
	.act-aside__hello { margin: 0 0 14px; font-size: 15px; font-weight: 700; line-height: 1.45; }
	.act-points { list-style: none; margin: 0; padding: 0; }
	.act-points li { position: relative; padding-left: 22px; margin: 0 0 9px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
	.act-points li::before {
		content: "";
		position: absolute;
		left: 0;
		top: 3px;
		width: 14px;
		height: 14px;
		border-radius: 50%;
		background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17.5 19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat;
	}
	.act-content { flex: 1 1 auto; padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
	.act-title { font-size: 28px; }
}

@media (max-width: 359px) {
	.act-content { padding: 16px 12px 18px; }
	.act-aside { padding: 12px 12px 14px; }
	.act-section { padding: 12px; }
	.act-input--code { font-size: 23px; letter-spacing: .3em; padding-left: calc(14px + .3em); }
	.act-demo-code { font-size: 22px; }
	.act-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.act-body *, .act-body *::before, .act-body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
