/* Clean Professional Login Form - Central Panel Style */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body, html {
	height: 100%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
	background-image: url('/app/resources/images/login-background.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: #333;
	margin: 0;
	padding: 0;
}

/* Logo klienta w lewym górnym rogu */
.client-logo-corner {
	position: fixed;
	top: 30px;
	left: 30px;
	z-index: 1000;
}

.client-logo-corner img {
	height: 40px;
	width: auto;
	max-width: 120px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Główny wrapper centralnego panelu */
.login-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
}

/* Centralny panel logowania */
.login-panel {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(15px);
	border-radius: 20px;
	padding: 30px;
	width: 420px;
	min-width: 420px;
	max-width: 420px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
	position: relative;
}

/* Sekcja głównego logo */
.main-logo-section {
	margin-bottom: 30px;
}

.main-logo {
	height: 80px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Tytuł logowania */
.login-title {
	margin-bottom: 30px;
}

.login-title h2 {
	font-size: 1.6rem;
	font-weight: 600;
	color: #2d3748;
	margin: 0;
}

/* Formularz */
.login-form {
	width: 100%;
}

.form-group {
	margin-bottom: 20px;
	text-align: left;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-wrapper i {
	position: absolute;
	left: 15px;
	color: #a0aec0;
	z-index: 2;
	font-size: 1rem;
}

.input-wrapper input {
	width: 100%;
	padding: 15px 15px 15px 45px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 400;
	background: #ffffff;
	transition: all 0.3s ease;
	color: #2d3748;
}

.input-wrapper input:focus {
	outline: none;
	border-color: #667eea;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-wrapper input::placeholder {
	color: #a0aec0;
	font-weight: 400;
}

/* Komunikat błędu */
.error-message {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 15px;
	background: #fed7d7;
	color: #c53030;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 20px;
	border: 1px solid #feb2b2;
}

.error-message i {
	font-size: 1rem;
}

/* Przycisk logowania */
.login-btn {
	width: 100%;
	padding: 15px 30px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
	background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.login-btn:active {
	transform: translateY(0);
}

.login-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Separator "lub" */
.divider {
	margin: 20px 0;
	position: relative;
	text-align: center;
}

.divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(160, 174, 192, 0.3);
}

.divider span {
	background: rgba(255, 255, 255, 0.9);
	padding: 0 15px;
	color: #718096;
	font-size: 0.9rem;
	font-weight: 500;
}

/* Przycisk SSO */
.sso-btn {
	width: 100%;
	padding: 15px 30px;
	background: rgba(255, 255, 255, 0.9);
	color: #4a5568;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sso-btn:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 1);
	border-color: #cbd5e0;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sso-btn:active {
	transform: translateY(0);
}

.sso-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
	.client-logo-corner {
		top: 20px;
		left: 20px;
	}
	
	.client-logo-corner img {
		height: 35px;
	}
	
	.login-wrapper {
		padding: 15px;
	}
	
	.login-panel {
		width: 380px;
		min-width: 380px;
		max-width: 380px;
		padding: 25px;
	}
	
	.main-logo {
		height: 70px;
	}
	
	.login-title h2 {
		font-size: 1.4rem;
	}
}

@media (max-width: 480px) {
	.client-logo-corner {
		top: 15px;
		left: 15px;
	}
	
	.client-logo-corner img {
		height: 30px;
	}
	
	.login-wrapper {
		padding: 10px;
	}
	
	.login-panel {
		width: 340px;
		min-width: 340px;
		max-width: 340px;
		padding: 20px;
		border-radius: 15px;
	}
	
	.main-logo {
		height: 60px;
	}
	
	.login-title h2 {
		font-size: 1.2rem;
	}
	
	.input-wrapper input {
		padding: 12px 12px 12px 40px;
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	.login-btn, .sso-btn {
		padding: 12px 25px;
		font-size: 0.95rem;
	}
}
