body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main login box */
.login-box {
    position: relative;
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25); /* outside shadow */
}

/* Animated balloon border */
.login-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    /* background: linear-gradient(270deg, #529361, #76a0ac, #ff6ec4, #87a728); */
    background-size: 600% 600%;
    z-index: -1;
    animation: balloonBorder 8s ease infinite;
}

@keyframes balloonBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo inside box */
.logo-box img {
    width: 142px !important;
    height: auto;
}

.login-box h2 {
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    position: relative;
    margin: 15px 0;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #000000;
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-box button:hover {
    background: #222121;
    transform: scale(1.05);
}

.error {
    color: red;
    margin-bottom: 15px;
}

/* Show/Hide password icon */
.input-group #togglePassword {
    position: absolute;
    right: 12px; /* Align to right inside input */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 16px;
    transition: color 0.3s ease;
}

.input-group #togglePassword:hover {
    color: #000; /* Change color on hover */
}


/* Lock icon stays on left */
.input-group i.fa-lock {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
}

/* Eye icon on the right end, aligned professionally */
.input-group i.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    right: -84%;
    cursor: pointer;
    color: #777;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* Change color on hover */
.input-group i.toggle-password:hover {
    color: #000;
}

/* Input padding to avoid overlapping icons */
.input-group input {
    width: 100%;
    padding: 12px 40px 12px 40px; /* left padding for lock, right padding for eye */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Optional: slightly adjust eye icon vertical position for better alignment */
.input-group input:focus + .toggle-password,
.input-group input:not(:placeholder-shown) + .toggle-password {
    top: 50%; /* ensures it stays centered even when input has text */
}
