/* ---- Background Image + Overlay ---- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    overflow-x: hidden;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('image/login\ bg.jpeg') center/cover no-repeat;
    z-index: -2;

    animation: zoomBG 15s ease-in-out infinite alternate;
}

/* Background zoom animation */
@keyframes zoomBG {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.50);
    z-index: -1;
}

/* ---- Center Wrapper ---- */
.login-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Popup Box (Glass Effect + Smooth Shadow) ---- */
.login-box {
    width: 780px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 45px rgba(0,0,0,0.35);
    transform: scale(0.93);
    transition: 0.4s ease;
}

.login-box:hover {
    transform: scale(0.97);
    box-shadow: 0 16px 55px rgba(0,0,0,0.45);
}

/* ---- Left Illustration ---- */
.left-side {
    width: 45%;
    background: #fefefe;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;

    border-right: 1px solid #eee;
}

.left-side img {
    width: 82%;
    animation: floatImg 3s ease-in-out infinite;
}

/* subtle floating animation */
@keyframes floatImg {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* ---- Right Form ---- */
.right-side {
    width: 55%;
    padding: 40px;
}

.right-side h2 {
    margin-top: 0;
    text-align: left;
    font-size: 26px;
    color: #222;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Labels */
.right-side label {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Inputs */
.right-side input {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: 1px solid #c7d3ff;
    margin-top: 6px;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

.right-side input:focus {
    border-color: #ff9d00;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

/* ---- Professional Orange Button ---- */
.right-side button {
    width: 100%;
    background: linear-gradient(135deg, #ff9500, #ff6600);
    color: #fff;
    border: none;
    padding: 13px;
    font-size: 17px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: 0.3s ease;
    box-shadow: 0 5px 18px rgba(255, 140, 0, 0.4);
}

.right-side button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(255, 120, 0, 0.55);
}

/* Button click animation */
.right-side button:active {
    transform: scale(0.96);
}

/* ---- Responsive Fix ---- */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        width: 92%;
        transform: scale(1);
    }

    .left-side, .right-side {
        width: 100%;
    }

    .left-side {
        padding: 20px;
    }

    .right-side {
        padding: 28px;
    }
}
