@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

body {
	font-family: 'Poppins', "open sans", "segoe ui", sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: #4b5563;
}

label {
	font-weight: 600;
}

li {
	margin-left: 20px;
}

p.small{
	margin-bottom: 0;
}

small.alert{
    padding: 5px;
	padding-left: 10px;
    display: block;
	margin: 0;
	margin-top: 3px;
}

/* Custom Checkbox */
input[type=checkbox] {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
}

.checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
    color: #6b7280;
}

/* Backgrounds */
.background, .backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.background {
	background: url('../images/bg.jpg');
	background-repeat: no-repeat;
	background-size: cover;
    background-position: center;
}

.backdrop {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.85) 100%);
    backdrop-filter: blur(5px);
}

/* Layout */
.login-container {
	max-width: 500px;
    width: 100%;
    z-index: 1;
    position: relative;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.login-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-header {
    text-align: center;
    padding: 32px 32px 0;
}

.login-header img {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.login-header h3 {
    font-weight: 600;
    font-size: 24px;
    margin: 10px 0 0;
    color: #111827;
}

.login-body {
	padding: 32px;
    background: #FFFFFF;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
    text-align: left;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    text-align: left;
}

/* Inputs */
.login-field {
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px !important;
}

.login-field:focus-within {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-group-text {
    background: transparent;
    border: 0;
    color: #9ca3af;
    padding-left: 16px;
    padding-right: 12px;
}

.login-field:focus-within .input-group-text {
    color: #3b82f6;
}

.form-control.login-input {
    border: 0;
    background: transparent;
    height: 48px;
    padding-left: 0;
    color: #1f2937;
    box-shadow: none;
    font-size: 15px;
}

.form-control.login-input::placeholder {
    color: #9ca3af;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
	background: #f9fafb;
	text-align: center;
	padding: 20px 32px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #6b7280;
}

.login-footer p {
	margin-bottom: 8px;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.login-container .copyright {
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	margin-top: 24px;
    font-size: 13px;
}

.login-container .copyright a {
	color: #fff;
    text-decoration: none;
}

/* Alert */
.alert {
    border-radius: 12px;
    font-size: 14px;
    border: 0;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media screen and (max-width: 500px) {
	.login-container {
		padding: 16px;
	}
	
    .login-header {
        padding: 24px 24px 0;
    }

	.login-body {
		padding: 24px;
	}
    
	.login-footer {
		padding: 20px 24px;
	}
}
