* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: "Jost", sans-serif;
	background: linear-gradient(135deg, rgba(26, 26, 46, 0.75) 0%, rgba(22, 33, 62, 0.75) 50%, rgba(15, 52, 96, 0.75) 100%), url('../img/login.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
}
body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

/* Alert Styles */
.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 500px;
}

.modern-alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
    animation: slideIn 0.3s ease-out forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #dff7e5;
    border-left: 4px solid #05caf8;
    color: #2d6a0f;
}

.alert-danger {
    background-color: #ffeaea;
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.alert-icon {
    margin-right: 15px;
    font-size: 20px;
}

.alert-content {
    flex: 1;
    font-size: 14px;
}

.alert-content strong {
    font-weight: 600;
    margin-right: 5px;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.alert-close:hover {
    opacity: 1;
}
.dealer-portal-container {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
	padding: 50px 40px;
	width: 100%;
	max-width: 450px;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.dealer-portal-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #05caf8, #05caf8, #494947, #494947);
	border-radius: 24px 24px 0 0;
}
.dealer-branding-section {
	text-align: center;
	margin-bottom: 40px;
}
.dealer-logo-icon {
	width: 120px;
	height: 80px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dealer-logo-icon img {
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}
.portal-main-title {
	font-size: 32px;
	font-weight: 800;
	color: #494947;
	margin-bottom: 8px;
	background: linear-gradient(135deg, #494947, #05caf8);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.portal-subtitle {
	color: #494947;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1px;
}
.dealer-authentication-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.credential-input-group {
	position: relative;
}
.credential-input-label {
	display: block;
	margin-bottom: 8px;
	color: #494947;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 1px;
}
.credential-input-field {
	width: 100%;
	padding: 18px 24px;
	border: 2px solid #ecf0f1;
	border-radius: 16px;
	font-size: 16px;
	transition: all 0.3s ease;
	background: #f8f9fa;
	outline: none;
	font-weight: 500;
	letter-spacing: 1px;
}
.credential-input-field[type="password"] {
	padding-right: 60px;
}
.credential-input-field:focus {
	border-color: #05caf8;
	background: white;
	box-shadow: 0 0 0 4px rgba(5, 200, 238, 0.1);
	transform: translateY(-2px);
}
.credential-input-field::placeholder {
	color: #bdc3c7;
	font-weight: 400;
}
.password-visibility-toggle {
	position: absolute;
	right: 16px;
	top: 50%;
	background: none;
	border: none;
	color: #7f8c8d;
	cursor: pointer;
	font-size: 16px;
	padding: 6px;
	border-radius: 6px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 0px;
	width: 28px;
	z-index: 10;
}
/* Hide browser's default password reveal button */
.credential-input-field::-ms-reveal,
.credential-input-field::-ms-clear {
	display: none;
}
.credential-input-field::-webkit-credentials-auto-fill-button,
.credential-input-field::-webkit-strong-password-auto-fill-button {
	display: none !important;
}
.password-visibility-toggle:hover {
	color: #05caf8;
	background: rgba(5, 200, 238, 0.1);
}
.forgot-password-link {
	display: block;
	text-align: right;
	margin-top: 8px;
	color: #05caf8;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}
.forgot-password-link:hover {
	color: #0ac8ee;
	text-decoration: underline;
}
.dealer-login-button {
	background: linear-gradient(135deg, #05caf8 0%, #10c6e4 100%);
	color: white;
	border: none;
	padding: 18px;
	border-radius: 16px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	letter-spacing: 1px;
}
.dealer-login-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(5, 200, 238, 0.4);
}
.dealer-login-button:active {
	transform: translateY(-1px);
}
/* Responsive Design */
@media (max-width: 480px) {
	.dealer-portal-container {
		padding: 40px 30px;
		margin: 15px;
	}
	.portal-main-title {
		font-size: 28px;
	}
	.dealer-logo-icon {
		width: 70px;
		height: 70px;
		font-size: 32px;
	}
	.credential-input-field {
		padding: 16px 20px;
		font-size: 16px;
	}
	.dealer-login-button {
		padding: 16px;
	}
}
@media (max-width: 360px) {
	.dealer-portal-container {
		padding: 35px 25px;
	}
	.portal-main-title {
		font-size: 24px;
	}
}