/**
 * Stayly Auth & KYC — Airbnb Luxury Stylesheet
 */

/* Modal Backdrop */
.stayly-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	animation: staylyFadeIn 0.25s ease-out;
}

@keyframes staylyFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Modal Card */
.stayly-modal-card {
	background: #ffffff;
	border-radius: 24px;
	max-width: 520px;
	width: 100%;
	padding: 36px 32px 32px;
	position: relative;
	box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #0F172A;
	box-sizing: border-box;
	max-height: 92vh;
	overflow-y: auto;
	animation: staylySlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes staylySlideUp {
	from { transform: translateY(20px) scale(0.97); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Close Button */
.stayly-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	background: #F1F5F9;
	border: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	color: #475569;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}
.stayly-modal-close:hover {
	background: #E2E8F0;
	color: #0F172A;
}

/* Auth Header */
.stayly-auth-brand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: #059669;
	background: #ECFDF5;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.stayly-auth-header h2 {
	font-size: 24px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 6px;
}
.stayly-auth-header p {
	font-size: 13.5px;
	color: #64748B;
	margin: 0 0 24px;
	line-height: 1.45;
}

/* Social Buttons */
.stayly-social-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}
.stayly-btn-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 13px 20px;
	border-radius: 14px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	border: 1.5px solid #E2E8F0;
	background: #ffffff;
	color: #0F172A;
	transition: all 0.2s ease;
	box-sizing: border-box;
}
.stayly-btn-social:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Divider */
.stayly-auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 18px 0;
	color: #94A3B8;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.stayly-auth-divider::before,
.stayly-auth-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #E2E8F0;
}
.stayly-auth-divider span {
	padding: 0 12px;
}

/* Tabs */
.stayly-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #F1F5F9;
	padding: 4px;
	border-radius: 12px;
	margin-bottom: 18px;
}
.stayly-tab-btn {
	background: transparent;
	border: 0;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: #64748B;
	cursor: pointer;
	transition: all 0.2s;
}
.stayly-tab-btn--active {
	background: #ffffff;
	color: #0F172A;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Form Fields */
.stayly-form-field {
	margin-bottom: 14px;
}
.stayly-form-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 5px;
}
.stayly-form-field input,
.stayly-form-group input,
.stayly-form-group select,
.stayly-form-group textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #CBD5E1;
	border-radius: 12px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s;
	font-family: inherit;
}
.stayly-form-field input:focus,
.stayly-form-group input:focus,
.stayly-form-group select:focus,
.stayly-form-group textarea:focus {
	outline: none;
	border-color: #059669;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

/* Action Buttons */
.stayly-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 14px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	border: 0;
	transition: all 0.2s ease;
	text-decoration: none;
}
.stayly-btn--primary {
	background: #0F172A;
	color: #ffffff;
}
.stayly-btn--primary:hover {
	background: #1E293B;
	transform: translateY(-1px);
}
.stayly-btn--full {
	width: 100%;
	margin-top: 6px;
}

/* Status message */
.stayly-auth-status {
	margin-top: 12px;
	font-size: 13px;
	min-height: 20px;
	text-align: center;
}
.stayly-auth-status.is-error { color: #DC2626; font-weight: 600; }
.stayly-auth-status.is-success { color: #059669; font-weight: 700; }

/* Role Selector Cards */
.stayly-role-selector__header {
	text-align: center;
	margin-bottom: 24px;
}
.stayly-role-selector__header h2 {
	font-size: 22px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 6px;
}
.stayly-role-selector__header p {
	font-size: 13.5px;
	color: #64748B;
	margin: 0;
}
.stayly-role-cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.stayly-role-card {
	background: #F8FAFC;
	border: 2px solid #E2E8F0;
	border-radius: 18px;
	padding: 20px;
	text-align: left;
	cursor: pointer;
	transition: all 0.25s ease;
	display: block;
	width: 100%;
	box-sizing: border-box;
}
.stayly-role-card:hover {
	border-color: #059669;
	background: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.1);
}
.stayly-role-card__icon {
	font-size: 32px;
	margin-bottom: 6px;
}
.stayly-role-card__badge {
	display: inline-block;
	background: #E0E7FF;
	color: #3730A3;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.stayly-role-card__badge--host {
	background: #FEF3C7;
	color: #92400E;
}
.stayly-role-card h3 {
	font-size: 17px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 6px;
}
.stayly-role-card p {
	font-size: 13px;
	color: #64748B;
	margin: 0 0 12px;
	line-height: 1.5;
}
.stayly-role-card__cta {
	font-size: 13px;
	font-weight: 700;
	color: #059669;
}

/* KYC Form Components */
.stayly-kyc-container {
	background: #ffffff;
	border: 1px solid #E2E8F0;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.stayly-kyc-banner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	border-radius: 16px;
	margin-bottom: 28px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
}
.stayly-kyc-banner--verified {
	background: #ECFDF5;
	border-color: #10B981;
}
.stayly-kyc-banner--pending {
	background: #FFFBEB;
	border-color: #FCD34D;
}
.stayly-kyc-banner--rejected {
	background: #FEF2F2;
	border-color: #F87171;
}
.stayly-kyc-banner__icon {
	font-size: 32px;
	flex-shrink: 0;
}
.stayly-kyc-banner h3 {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 800;
	color: #0F172A;
}
.stayly-kyc-banner p {
	margin: 0;
	font-size: 13.5px;
	color: #475569;
	line-height: 1.5;
}
.stayly-kyc-section {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #F1F5F9;
}
.stayly-kyc-section h4 {
	font-size: 16px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 16px;
}
.stayly-form-help {
	font-size: 13px;
	color: #64748B;
	margin: -10px 0 16px;
}
.stayly-form-grid--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 640px) {
	.stayly-form-grid--2 {
		grid-template-columns: 1fr;
	}
}

/* Upload Box */
.stayly-upload-box {
	border: 2px dashed #CBD5E1;
	border-radius: 14px;
	padding: 20px;
	text-align: center;
	background: #F8FAFC;
	transition: all 0.2s;
	position: relative;
	cursor: pointer;
}
.stayly-upload-box:hover {
	border-color: #059669;
	background: #ECFDF5;
}
.stayly-upload-icon {
	font-size: 28px;
	display: block;
	margin-bottom: 6px;
}
.stayly-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}
.stayly-preview-tag {
	margin-top: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #059669;
}

/* Host Dashboard Badges */
.stayly-dash-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 16px;
}
.stayly-dash-badge--verified {
	background: #ECFDF5;
	color: #065F46;
	border: 1px solid #10B981;
}
.stayly-dash-badge--pending {
	background: #FFFBEB;
	color: #92400E;
	border: 1px solid #FCD34D;
}
.stayly-dash-alert {
	background: #FFFBEB;
	border: 1.5px solid #FCD34D;
	padding: 14px 18px;
	border-radius: 14px;
	font-size: 13.5px;
	color: #78350F;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}


/* Luxury Step Badges & Headers */
.stayly-section-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
}
.stayly-step-badge {
	background: #0F172A;
	color: #ffffff;
	font-weight: 800;
	font-size: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.stayly-section-desc {
	margin: 2px 0 0;
	font-size: 13px;
	color: #64748B;
}
.req {
	color: #DC2626;
	font-weight: 700;
}
.stayly-form-grid--3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 16px;
}
@media (max-width: 768px) {
	.stayly-form-grid--3 {
		grid-template-columns: 1fr;
	}
}

/* Verified Pill */
.stayly-verified-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	background: #059669;
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
}

/* GPS Geolocation Action Card */
.stayly-gps-action-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	border-radius: 16px;
	padding: 18px 22px;
	margin-top: 8px;
}
.stayly-gps-left {
	display: flex;
	align-items: center;
	gap: 14px;
}
.stayly-gps-icon {
	font-size: 30px;
}
.stayly-gps-left strong {
	display: block;
	font-size: 14.5px;
	color: #0F172A;
}
.stayly-gps-status-text {
	display: block;
	font-size: 12.5px;
	color: #64748B;
	margin-top: 2px;
}
.stayly-btn--gps {
	background: #059669;
	color: #ffffff;
	font-size: 13.5px;
	padding: 10px 18px;
	border-radius: 12px;
	cursor: pointer;
	border: 0;
	font-weight: 700;
	transition: all 0.2s ease;
}
.stayly-btn--gps:hover {
	background: #047857;
	transform: translateY(-1px);
}
.stayly-btn--gps.is-captured {
	background: #10B981;
}

/* 3-Card Upload Grid */
.stayly-upload-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 18px;
	margin-top: 8px;
}
@media (max-width: 768px) {
	.stayly-upload-grid {
		grid-template-columns: 1fr;
	}
}
.stayly-upload-card {
	background: #F8FAFC;
	border: 1.5px dashed #CBD5E1;
	border-radius: 16px;
	padding: 16px;
	text-align: center;
	position: relative;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.stayly-upload-card:hover {
	border-color: #059669;
	background: #F0FDF4;
}
.stayly-upload-preview {
	width: 100%;
	height: 140px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	margin-bottom: 12px;
}
.stayly-upload-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.stayly-upload-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
}
.stayly-upload-placeholder .stayly-upload-icon {
	font-size: 32px;
	margin-bottom: 6px;
}
.stayly-upload-placeholder strong {
	font-size: 13px;
	color: #0F172A;
}
.stayly-upload-placeholder span {
	font-size: 11.5px;
	color: #64748B;
	margin-top: 2px;
}
.stayly-upload-btn {
	background: #FFFFFF;
	border: 1.5px solid #E2E8F0;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 700;
	color: #0F172A;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	display: inline-block;
	transition: all 0.2s ease;
}
.stayly-upload-btn:hover {
	background: #0F172A;
	color: #FFFFFF;
	border-color: #0F172A;
}
.stayly-thumb-tag {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: #059669;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
}
