body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

/* Full screen wrapper with the new background image */
.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('../img/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end; /* Panel on the right */
    align-items: center;
}

/* Dark overlay to make the panel stand out */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Glassmorphism Panel */
.glass-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    margin-right: 10%; /* Spacing from the right edge */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Typography */
.login-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Avatar Styles */
.avatar-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#userAvatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Input Fields */
.custom-input-group {
    display: flex !important;
    align-items: stretch !important;
}

.custom-input-group .input-group-text {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-right: none !important;
    color: #fff !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
}

.custom-input-group .input-group-text i {
    font-size: 18px !important;
}

.custom-input-group .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: none !important;
    color: #fff !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    height: 45px !important;
}

.custom-input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

.custom-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Background Crossfade Wrapper */
.bg-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.bg-slider-item.active {
    opacity: 1;
}

/* Login Button */
.login-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    padding: 12px !important;
    height: 48px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

/* Result Messages */
#resultMessage .alert {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    border-radius: 10px;
    font-size: 14px;
    padding: 10px;
}

/* Designer Signature */
.designer-signature {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    white-space: nowrap;
}

.designer-signature a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.designer-signature a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.login-bottom-logo {
    position: absolute;
    bottom: 25px;
    left: 30px;
    z-index: 10;
    max-width: 190px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.login-bottom-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

@media (max-width: 992px) {
    .login-bottom-logo {
        bottom: 20px;
        left: 20px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        justify-content: center;
        padding: 20px 20px 70px 20px;
    }
    .glass-panel {
        margin-right: 0;
        padding: 30px 20px;
    }
    .login-bottom-logo {
        bottom: 15px;
        left: 15px;
        max-width: 120px;
    }
    .designer-signature {
        bottom: 10px;
    }
}

@media (max-width: 576px) {
    .login-bottom-logo {
        bottom: 12px;
        left: 12px;
        max-width: 95px;
    }
    .designer-signature {
        padding: 6px 12px;
    }
    .designer-signature a {
        font-size: 11px;
    }
}