/* ==========================================================================
   Sign-in / auth pages: phone-shop showcase + form
   ========================================================================== */

.auth-body {
	margin: 0;
	background: #F4F6FB;
	font-family: Roboto, 'Segoe UI', sans-serif;
}

.auth-shell {
	display: flex;
	min-height: 100vh;
}

/* Showcase ------------------------------------------------------------------ */
.auth-showcase {
	position: relative;
	flex: 0 0 56%;
	overflow: hidden;
	background:
		radial-gradient(1200px 600px at 10% -10%, #2c3f9e 0%, transparent 60%),
		linear-gradient(140deg, #0d1333 0%, #1a2266 45%, #3D5EE1 78%, #6A3DE1 100%);
	color: #fff;
	align-items: center;
	justify-content: center;
}

.auth-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.auth-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .55;
}

.glow-1 {
	width: 420px;
	height: 420px;
	background: #6A3DE1;
	right: -120px;
	top: -100px;
}

.glow-2 {
	width: 360px;
	height: 360px;
	background: #19c3e6;
	left: -140px;
	bottom: -120px;
	opacity: .35;
}

.showcase-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 760px;
	padding: 48px 56px;
}

.showcase-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 30px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	font-size: 13px;
	backdrop-filter: blur(6px);
}

.showcase-copy h1 {
	color: #fff;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 800;
	margin: 18px 0 12px;
	letter-spacing: -.5px;
}

.showcase-copy h1 span {
	background: linear-gradient(90deg, #7dd3fc, #c4b5fd);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.showcase-copy p {
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	max-width: 460px;
	margin: 0;
}

.showcase-features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.showcase-features span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	padding: 7px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .9);
}

/* Device stage -------------------------------------------------------------------- */
.device-stage {
	position: relative;
	height: 430px;
	margin: 26px 0 22px;
}

.phone {
	position: absolute;
	width: 200px;
	height: 400px;
	border-radius: 34px;
	background: linear-gradient(160deg, #2b2f3d, #0b0d14);
	padding: 10px;
	box-shadow:
		0 30px 60px rgba(4, 8, 30, .55),
		inset 0 0 0 2px rgba(255, 255, 255, .08);
}

.phone-notch {
	position: absolute;
	top: 16px;
	left: 50%;
	width: 62px;
	height: 16px;
	transform: translateX(-50%);
	background: #0b0d14;
	border-radius: 10px;
	z-index: 2;
}

.phone-screen {
	width: 100%;
	height: 100%;
	border-radius: 26px;
	overflow: hidden;
	padding: 38px 14px 14px;
}

.phone-front {
	left: 50%;
	top: 10px;
	transform: translateX(-35%) rotate(4deg);
	z-index: 3;
	animation: phoneFloat 6s ease-in-out infinite;
}

.phone-back {
	left: 50%;
	top: 30px;
	transform: translateX(-118%) rotate(-9deg);
	z-index: 2;
	opacity: .96;
	animation: phoneFloatBack 7s ease-in-out infinite;
}

@keyframes phoneFloat {
	0%, 100% { transform: translateX(-35%) rotate(4deg) translateY(0); }
	50% { transform: translateX(-35%) rotate(4deg) translateY(-12px); }
}

@keyframes phoneFloatBack {
	0%, 100% { transform: translateX(-118%) rotate(-9deg) translateY(0); }
	50% { transform: translateX(-118%) rotate(-9deg) translateY(10px); }
}

/* POS screen */
.pos-screen {
	background: #f6f7fb;
	color: #202C4B;
	font-size: 11px;
}

.ps-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.ps-brand {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, #3D5EE1, #6A3DE1);
}

.ps-title {
	font-weight: 700;
	font-size: 13px;
}

.ps-sub {
	color: #8a93a8;
	font-size: 10px;
}

.ps-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 12px;
	padding: 8px;
	margin-bottom: 7px;
	box-shadow: 0 4px 12px rgba(17, 24, 39, .05);
}

.ps-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	flex-shrink: 0;
}

.bg-a { background: rgba(61, 94, 225, .12); color: #3D5EE1; }
.bg-b { background: rgba(26, 190, 23, .12); color: #1ABE17; }
.bg-c { background: rgba(234, 179, 0, .15); color: #c99a00; }

.ps-text {
	flex: 1;
	min-width: 0;
	line-height: 1.25;
}

.ps-text b {
	display: block;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ps-text small {
	color: #8a93a8;
	font-size: 9.5px;
}

.ps-price {
	font-weight: 700;
	font-size: 11px;
}

.ps-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px dashed #d8dce8;
	margin-top: 10px;
	padding-top: 10px;
}

.ps-total span {
	color: #8a93a8;
}

.ps-total b {
	font-size: 17px;
	font-weight: 800;
}

.ps-pay {
	margin-top: 12px;
	background: linear-gradient(135deg, #1ABE17, #13a10f);
	color: #fff;
	text-align: center;
	border-radius: 12px;
	padding: 10px;
	font-weight: 700;
	font-size: 11.5px;
	box-shadow: 0 8px 18px rgba(26, 190, 23, .35);
}

/* Scanner screen */
.scan-screen {
	background: linear-gradient(180deg, #111735, #1c2459);
	color: #fff;
	text-align: center;
}

.scan-title {
	font-size: 12px;
	font-weight: 600;
	opacity: .85;
	margin-bottom: 26px;
}

.scan-frame {
	position: relative;
	margin: 0 auto 18px;
	width: 138px;
	height: 110px;
	border-radius: 14px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 0 0 4px rgba(125, 211, 252, .25);
}

.barcode {
	display: flex;
	gap: 2px;
	height: 66px;
	align-items: stretch;
}

.barcode span {
	background: #111;
	display: block;
}

.scan-line {
	position: absolute;
	left: 8px;
	right: 8px;
	height: 2px;
	background: #ff3b5c;
	box-shadow: 0 0 12px 2px rgba(255, 59, 92, .8);
	animation: scan 2.2s ease-in-out infinite;
}

@keyframes scan {
	0%, 100% { top: 14px; }
	50% { top: 94px; }
}

.scan-imei {
	font-family: SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 10.5px;
	letter-spacing: .5px;
	white-space: nowrap;
	margin-bottom: 12px;
}

.scan-ok {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9.5px;
	white-space: nowrap;
	background: rgba(26, 190, 23, .18);
	color: #7cf27a;
	padding: 6px 10px;
	border-radius: 20px;
}

/* Floating glass cards */
.float-card {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 14px 30px rgba(4, 8, 30, .3);
	z-index: 4;
	color: #fff;
	white-space: nowrap;
}

.float-card small {
	display: block;
	font-size: 10.5px;
	opacity: .75;
}

.float-card b {
	font-size: 13px;
}

.float-card em {
	font-style: normal;
	font-size: 11px;
	color: #7cf27a;
	margin-left: 4px;
}

.fc-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.fc-icon.green { background: rgba(26, 190, 23, .25); color: #7cf27a; }
.fc-icon.blue { background: rgba(125, 211, 252, .25); color: #7dd3fc; }
.fc-icon.amber { background: rgba(250, 204, 21, .22); color: #fde047; }

.fc-sales {
	right: 0;
	top: 26px;
	animation: cardFloat 5s ease-in-out infinite;
}

.fc-repair {
	right: -10px;
	bottom: 70px;
	animation: cardFloat 6s ease-in-out infinite .8s;
}

.fc-warranty {
	left: -6px;
	bottom: 22px;
	animation: cardFloat 5.5s ease-in-out infinite 1.4s;
}

@keyframes cardFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* Accessory badges */
.acc-badge {
	position: absolute;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #fff;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	backdrop-filter: blur(8px);
	animation: cardFloat 7s ease-in-out infinite;
}

.ab-1 { left: 4%; top: 18px; }
.ab-2 { left: 16%; top: 210px; width: 38px; height: 38px; font-size: 18px; animation-delay: 1s; }
.ab-3 { right: 22%; top: -6px; width: 38px; height: 38px; font-size: 18px; animation-delay: 2s; }
.ab-4 { right: 6%; top: 190px; animation-delay: 1.5s; }

/* Form side ---------------------------------------------------------------------- */
.auth-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(61, 94, 225, .08), transparent 70%),
		#F4F6FB;
}

.auth-form-wrap {
	width: 100%;
	max-width: 440px;
}

.auth-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
	text-decoration: none;
}

.auth-brand .brand-mark {
	width: 46px;
	height: 46px;
	font-size: 24px;
	border-radius: 13px;
}

.auth-logo-img {
	max-height: 46px;
	max-width: 120px;
}

.auth-brand-name {
	display: block;
	font-size: 20px;
	font-weight: 800;
	color: #202C4B;
	line-height: 1.2;
}

.auth-brand-tag {
	display: block;
	font-size: 12.5px;
	color: #6B7280;
}

.auth-card {
	background: #fff;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 20px 50px rgba(17, 24, 39, .08);
	border: 1px solid #EEF0F5;
}

.auth-card h2 {
	font-size: 26px;
	font-weight: 800;
	color: #202C4B;
}

.auth-card .form-control {
	height: 46px;
	border-radius: 12px;
}

.auth-card .btn-primary {
	height: 48px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	background: linear-gradient(135deg, #3D5EE1, #5a46e6);
	border: 0;
	box-shadow: 0 10px 22px rgba(61, 94, 225, .32);
	transition: transform .15s ease, box-shadow .15s ease;
}

.auth-card .btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(61, 94, 225, .4);
}

.auth-card .input-icon-addon {
	z-index: 3;
}

.auth-foot {
	text-align: center;
	margin-top: 22px;
	font-size: 12.5px;
	color: #8a93a8;
}

@media (max-width: 1399.98px) {
	.showcase-inner { padding: 40px; }
	.showcase-copy h1 { font-size: 34px; }
}

@media (max-height: 860px) {
	.showcase-inner { padding-top: 28px; padding-bottom: 28px; }
	.showcase-copy h1 { font-size: 32px; margin: 12px 0 8px; }
	.device-stage { height: 430px; transform: scale(.82); transform-origin: top center; margin: 14px 0 -64px; }
}

@media (max-height: 720px) {
	.showcase-copy p { display: none; }
	.device-stage { transform: scale(.74); margin-bottom: -100px; }
}

@media (prefers-reduced-motion: reduce) {
	.phone-front, .phone-back, .float-card, .acc-badge, .scan-line { animation: none !important; }
}
