@charset "UTF-8";

/* ===========================================
   FTAS01000 — Fresh & Bright Login
   White / Sky-blue background for sales team
   =========================================== */

/* ---------- CSS Variables ---------- */
:root {
	--color-primary: #2563eb;
	--color-primary-dark: #1d4ed8;
	--color-primary-light: #60a5fa;
	--color-accent: #0ea5e9;
	--color-text: #1e293b;
	--color-text-muted: #64748b;
	--color-danger: #ef4444;
	--radius-lg: 20px;
	--radius-md: 12px;
	--radius-sm: 8px;
	--shadow-card: 0 20px 50px rgba(37, 99, 235, 0.10), 0 8px 20px rgba(0, 0, 0, 0.04);
	--font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
	overflow: hidden;
}

body {
	font-family: var(--font-sans);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 30%, #f8fafc 60%, #dbeafe 100%);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
}

[v-cloak] {
	display: none !important;
}

/* ---------- Soft Animated Background Blobs ---------- */
.bg-blobs {
	position: fixed;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.45;
	animation: blobFloat 18s ease-in-out infinite alternate;
}

.blob-1 {
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, #93c5fd 0%, transparent 70%);
	top: -12%;
	left: -8%;
	animation-duration: 20s;
}

.blob-2 {
	width: 450px;
	height: 450px;
	background: radial-gradient(circle, #7dd3fc 0%, transparent 70%);
	bottom: -10%;
	right: -8%;
	animation-duration: 17s;
	animation-delay: -4s;
}

.blob-3 {
	width: 350px;
	height: 350px;
	background: radial-gradient(circle, #a5b4fc 0%, transparent 70%);
	top: 50%;
	left: 60%;
	transform: translate(-50%, -50%);
	animation-duration: 22s;
	animation-delay: -9s;
}

@keyframes blobFloat {
	0%   { transform: translate(0, 0) scale(1); }
	33%  { transform: translate(40px, -30px) scale(1.08); }
	66%  { transform: translate(-30px, 25px) scale(0.94); }
	100% { transform: translate(25px, -15px) scale(1.04); }
}

/* ---------- Vue App Container ---------- */
#app {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	width: 100%;
	padding: 24px;
}

/* ---------- Login Card ---------- */
.login-card {
	width: 100%;
	max-width: 440px;
	padding: 44px 40px 36px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(20px) saturate(1.4);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: var(--shadow-card);
	animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ---------- Logo ---------- */
.logo-area {
	text-align: center;
	margin-bottom: 32px;
}

.logo-img {
	height: 48px;
	width: auto;
	object-fit: contain;
}

.logo-subtitle {
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

/* ---------- Error Alert ---------- */
.alert-error {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin-bottom: 24px;
	background: linear-gradient(135deg, #fef2f2, #fff1f2);
	border: 1px solid #fecaca;
	border-radius: var(--radius-sm);
	color: var(--color-danger);
	font-size: 13px;
	font-weight: 500;
	animation: shakeX 0.45s ease-in-out;
}

.alert-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

@keyframes shakeX {
	0%, 100% { transform: translateX(0); }
	20%  { transform: translateX(-6px); }
	40%  { transform: translateX(6px); }
	60%  { transform: translateX(-4px); }
	80%  { transform: translateX(4px); }
}

/* ---------- Form ---------- */
.form-group {
	margin-bottom: 22px;
}

label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text);
}

.label-icon {
	width: 15px;
	height: 15px;
	color: var(--color-text-muted);
}

/* Inputs */
input[type="email"],
input[type="password"],
input[type="text"] {
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
	font-family: var(--font-sans);
	color: var(--color-text);
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: var(--radius-sm);
	outline: none;
	transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

input::placeholder {
	color: #94a3b8;
	font-weight: 400;
}

/* Password wrapper (for eye toggle) */
.password-wrapper {
	position: relative;
}

.password-wrapper input {
	padding-right: 46px;
}

.toggle-pw {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #94a3b8;
	transition: color var(--transition);
	padding: 2px;
	display: flex;
	align-items: center;
}

.toggle-pw:hover {
	color: var(--color-primary);
}

.toggle-pw svg {
	width: 18px;
	height: 18px;
}

/* ---------- Login Button ---------- */
.btn-login {
	width: 100%;
	padding: 13px;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--font-sans);
	letter-spacing: 0.5px;
	color: #fff;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.30);
}

.btn-login:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
	filter: brightness(1.06);
}

.btn-login:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-login:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Shimmer effect on button */
.btn-login::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		transparent 40%,
		rgba(255, 255, 255, 0.22) 45%,
		rgba(255, 255, 255, 0.28) 50%,
		transparent 55%
	);
	transform: translateX(-100%);
	transition: none;
}

.btn-login:hover::after {
	animation: shimmer 0.8s ease forwards;
}

@keyframes shimmer {
	to { transform: translateX(100%); }
}

/* Loading spinner */
.spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.65s linear infinite;
	vertical-align: middle;
}

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

/* ---------- Card Footer ---------- */
.card-footer {
	text-align: center;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.footer-link {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition);
}

.footer-link:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

/* ---------- Copyright ---------- */
.copyright {
	margin-top: 28px;
	font-size: 11px;
	color: #94a3b8;
	letter-spacing: 0.5px;
	text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.login-card {
		padding: 32px 24px 28px;
		border-radius: 16px;
	}

	.logo-img {
		height: 40px;
	}
}