/* Import professional font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Variables */
:root {
	--primary: #ff1414;
	--text-primary: #212529;
	--text-secondary: #666;
	--bg-primary: #ffffff;
	--bg-secondary: #f8f9fa;
	--border-color: #e0e0e0;
	--error-color: #dc3545;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	min-height: 100vh;
	color: var(--text-primary);
	line-height: 1.6;
}

/* Login Wrapper */
.login-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Login Page Header */
.login-page-header {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0 2rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

.login-page-header-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

.login-logo {
	height: 40px;
	width: auto;
	display: flex;
	align-items: center;
}

.login-logo img {
	height: 100%;
	width: auto;
	object-fit: contain;
}

.login-home-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-primary);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 400;
	transition: all 0.3s ease;
	padding: 0.3rem 0;
	position: relative;
}

.login-home-button:hover {
	color: var(--primary);
	transform: translateY(-1px);
}

.login-home-button::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.3s ease;
}

.login-home-button:hover::after {
	width: 100%;
}

.login-home-button svg {
	width: 18px;
	height: 18px;
}

/* Login Container */
.login-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 2rem;
}

.login-card {
	background: white;
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	padding: 3.5rem;
	width: 100%;
	max-width: 480px;
	animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.login-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.login-title {
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
	letter-spacing: -0.02em;
}

.login-subtitle {
	font-size: 1.05rem;
	color: var(--text-secondary);
	font-weight: 400;
	line-height: 1.5;
}

/* Error Message */
.login-error {
	background: #fee;
	border: 1px solid #fcc;
	color: var(--error-color);
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	text-align: center;
	animation: shake 0.4s ease-in-out;
}

@keyframes shake {
	0%, 100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-10px);
	}
	75% {
		transform: translateX(10px);
	}
}

/* Form Styles */
.login-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-label {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-input {
	width: 100%;
	padding: 1rem 1.25rem;
	border: 2px solid var(--border-color);
	border-radius: 12px;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
	background: var(--bg-primary);
	color: var(--text-primary);
}

.form-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(255, 20, 20, 0.1);
	transform: translateY(-1px);
}

.form-input::placeholder {
	color: #999;
	opacity: 0.6;
}

/* Login Button */
.login-button {
	width: 100%;
	padding: 1rem 2rem;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 0.5rem;
	font-family: inherit;
	box-shadow: 0 4px 15px rgba(255, 20, 20, 0.3);
}

.login-button:hover {
	background: #e01212;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 20, 20, 0.4);
}

.login-button:active {
	transform: translateY(0);
}

/* Client Header */
.client-header {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0 2rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
	margin-bottom: 2rem;
}

.client-header-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

.client-logo {
	height: 40px;
	width: auto;
	display: flex;
	align-items: center;
}

.client-logo img {
	height: 100%;
	width: auto;
	object-fit: contain;
}

/* Client Container (for iframes) */
.client-container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	min-height: 100vh;
	padding: 0 2rem 2rem;
}

.logout-button {
	padding: 1rem 2rem;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 4px 15px rgba(255, 20, 20, 0.3);
}

.logout-button:hover {
	background: #e01212;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 20, 20, 0.4);
}

.logout-button:active {
	transform: translateY(0);
}

.client-section {
	margin-bottom: 3rem;
}

.client-title {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 1rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
	position: relative;
	display: inline-block;
}

.client-title::after {
	content: '';
	position: absolute;
	bottom: -1rem;
	left: 0;
	width: 60px;
	height: 4px;
	background: var(--primary);
	border-radius: 2px;
}

.iframe-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding-top: 36%;
	margin-top: 1rem;
	border-radius: 12px;
	box-shadow: var(--shadow);
	background: #000;
}

.iframe-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	margin: 0;
	padding: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.login-page-header {
		padding: 0 1rem;
	}
	
	.login-page-header-content {
		height: 50px;
		flex-direction: row;
		justify-content: space-between;
	}
	
	.login-logo {
		height: 30px;
	}
	
	.login-home-button span {
		display: none;
	}
	
	.login-home-button {
		padding: 0.3rem 0;
	}
	
	.login-container {
		padding: 1rem;
	}
	
	.login-card {
		padding: 2.5rem 1.5rem;
		border-radius: 20px;
	}
	
	.login-title {
		font-size: 1.75rem;
	}
	
	.login-subtitle {
		font-size: 0.95rem;
	}
	
	.client-header {
		padding: 0 1rem;
	}
	
	.client-header-content {
		height: 50px;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	
	.client-logo {
		height: 30px;
	}
	
	.logout-button {
		padding: 0.75rem 1.5rem;
		font-size: 0.85rem;
	}
	
	.client-container {
		padding: 0 1rem 1rem;
	}
	
	.client-title {
		font-size: 2rem;
	}
	
	.iframe-wrapper {
		padding-top: 56.25%;
	}
}
