﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6fb;
}

.login-wrapper {
    /* min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center; */
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* BACKGROUND SHAPES */

.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, #ffcade, #ffdbe7);
    top: -180px;
    left: -130px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffc4d8, #ffe3ed);
    bottom: -120px;
    right: -100px;
}

/* CONTAINER */

.login-container {
    width: 100%;
    max-width: 1400px;
    min-height:620px;
    background: #fff;
    border-radius: 35px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08), 0 8px 20px rgba(0, 0, 0, .05);
}

/* LEFT */

.login-left {
    position: relative;
    background: linear-gradient(135deg, #fff1f6, #ffe5ee);
    padding: 0px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, .8), transparent 40%), radial-gradient(circle at bottom right, rgba(255, 255, 255, .7), transparent 35%);
}

.left-content {
    position: absolute;
    top: 30px;
    left: 70px;
    z-index: 2;
    max-width: 430px;
}

.tag {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border-radius: 30px;
    color: #c00052;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
    margin-bottom: 25px;
}

.left-content h1 {
    font-size: 32px;
    line-height: 1.1;
    color: #1b1b1b;
    margin-bottom: 20px;
    font-weight: 700;
}

.left-content p {
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.login-left img {
    width: 100%;
    max-width: 720px;
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .12));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* RIGHT */

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: #fff;
    position: relative;
}

.login-box {
    width: 100%;
    max-width: 430px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1005c, #a60049);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: 0 18px 35px rgba(209, 0, 92, .35);
}

.login-box h2 {
    font-size: 32px;
    color: #111;
    margin-bottom: 10px;
}

.sub-title {
    color: #777;
    margin-bottom: 40px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        margin-bottom: 12px;
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }

.input-box {
    height: 64px;
    border-radius: 18px;
    background: #f5f7fc;
    display: flex;
    align-items: center;
    padding: 0 22px;
    transition: .3s;
    border: 2px solid transparent;
}

    .input-box:hover,
    .input-box:focus-within {
        border-color: #d1005c;
        background: #fff;
        box-shadow: 0 10px 25px rgba(209, 0, 92, .08);
    }

    .input-box i {
        color: #a1a8b7;
        font-size: 18px;
        margin-right: 15px;
    }

    .input-box input {
        width: 100%;
        border: none;
        background: none;
        outline: none;
        font-size: 16px;
        color: #222;
        font-family: 'Poppins', sans-serif;
    }

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    font-size: 14px;
}

    .remember-row label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #555;
    }

    .remember-row a {
        color: #c00052;
        text-decoration: none;
        font-weight: 600;
    }

.login-btn {
    width: 100%;
    height: 65px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #d1005c, #a70049);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 18px 30px rgba(209, 0, 92, .25);
}

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 24px 40px rgba(209, 0, 92, .35);
    }

/* RESPONSIVE */

@media(max-width:1100px) {

    .login-container {
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: 500px;
    }

    .left-content h1 {
        font-size: 42px;
    }
}

@media(max-width:768px) {

    .login-wrapper {
        padding: 20px;
    }

    .login-container {
        border-radius: 25px;
    }

    .login-left {
        padding: 40px 20px;
        min-height: 420px;
    }

    .left-content {
        top: 40px;
        left: 30px;
    }

        .left-content h1 {
            font-size: 34px;
        }

    .login-right {
        padding: 40px 25px;
    }

    .login-box h2 {
        font-size: 32px;
    }

    .logo-circle {
        width: 75px;
        height: 75px;
        font-size: 28px;
    }
}


/* ========= BACKGROUND ANIMATION ========= */

.login-wrapper::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(209, 0, 92, .12), transparent 70%);
    top: -250px;
    right: -200px;
    animation: rotateGlow 18s linear infinite;
    z-index: 0;
}

.login-wrapper::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 173, 205, .20), transparent 70%);
    bottom: -180px;
    left: -150px;
    animation: rotateGlowReverse 15s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.08);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes rotateGlowReverse {
    0% {
        transform: rotate(360deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* ========= LOGIN CONTAINER ENTRY ========= */

.login-container {
    animation: containerFade 1.2s ease;
}

@keyframes containerFade {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========= LEFT IMAGE FLOAT ========= */

.login-left img {
    animation: floatImage 5s ease-in-out infinite, imageFade 1.4s ease;
}

@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes imageFade {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========= TEXT ANIMATION ========= */

.left-content {
    animation: leftText 1.2s ease;
}

@keyframes leftText {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= LOGO PULSE ========= */

.logo-circle {
    animation: pulseLogo 2.8s infinite;
}

@keyframes pulseLogo {
    0% {
        box-shadow: 0 0 0 0 rgba(209, 0, 92, .45);
    }

    70% {
        box-shadow: 0 0 0 22px rgba(209, 0, 92, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(209, 0, 92, 0);
    }
}

/* ========= INPUT HOVER EFFECT ========= */

.input-box {
    position: relative;
    overflow: hidden;
}

    .input-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
        transition: .8s;
    }

    .input-box:hover::before {
        left: 100%;
    }

/* ========= BUTTON SHINE ========= */

.login-btn {
    position: relative;
    overflow: hidden;
}

    .login-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 80px;
        height: 100%;
        background: rgba(255, 255, 255, .35);
        transform: skewX(-25deg);
    }

    .login-btn:hover::before {
        animation: btnShine .9s ease;
    }

@keyframes btnShine {
    100% {
        left: 140%;
    }
}

/* ========= FLOATING SMALL CIRCLES ========= */

.login-right::before,
.login-right::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(209, 0, 92, .08);
    animation: floatingBubble 5s ease-in-out infinite;
}

.login-right::before {
    width: 90px;
    height: 90px;
    top: 60px;
    right: 80px;
}

.login-right::after {
    width: 35px;
    height: 35px;
    bottom: 100px;
    left: 50px;
    animation-delay: 2s;
}

@keyframes floatingBubble {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ========= FORM FADE ========= */

.form-group {
    animation: fadeUp .8s ease forwards;
    opacity: 0;
}

    .form-group:nth-child(1) {
        animation-delay: .4s;
    }

    .form-group:nth-child(2) {
        animation-delay: .7s;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= BUTTON ENTRY ========= */

.login-btn {
    animation: btnEntry 1.1s ease;
}

@keyframes btnEntry {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.mini-dashboard-img {
    width: 471px;
/*    height: 390px;*/
    position: relative;
    margin-top: 208px;
    animation: mainFloat 5s ease-in-out infinite;
}

.dash-window {
    width: 100%;
    height: 330px;
    background: #fff;
    border-radius: 32px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(193, 0, 82, .18);
    transform: rotate(-3deg);
}

.dash-sidebar {
    width: 95px;
    background: linear-gradient(180deg, #d1005c, #8d0040);
    padding: 40px 22px;
}

    .dash-sidebar span {
        display: block;
        width: 44px;
        height: 14px;
        background: rgba(255, 255, 255, .75);
        border-radius: 20px;
        margin-bottom: 25px;
    }

.dash-content {
    flex: 1;
    padding: 32px;
}

.dash-top {
    width: 70%;
    height: 24px;
    background: #ffd4e4;
    border-radius: 30px;
    margin-bottom: 28px;
}

.dash-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

    .dash-cards div {
        flex: 1;
        height: 72px;
        background: linear-gradient(135deg, #fff3f8, #ffd8e7);
        border-radius: 18px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
    }

.dash-chart {
    height: 125px;
    background: #fff7fa;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 22px;
}

    .dash-chart span {
        width: 38px;
        background: linear-gradient(180deg, #ff4f8f, #b90050);
        border-radius: 18px 18px 6px 6px;
        animation: barAnim 1.8s ease-in-out infinite alternate;
    }

        .dash-chart span:nth-child(2) {
            animation-delay: .2s
        }

        .dash-chart span:nth-child(3) {
            animation-delay: .4s
        }

        .dash-chart span:nth-child(4) {
            animation-delay: .6s
        }

        .dash-chart span:nth-child(5) {
            animation-delay: .8s
        }

.float-icon {
    position: absolute;
    width: 78px;
    height: 78px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c00052;
    font-size: 28px;
    box-shadow: 0 18px 35px rgba(193, 0, 82, .16);
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-one {
    top: 20px;
    right: 20px;
}

.icon-two {
    bottom: 80px;
    left: 20px;
    animation-delay: 1s;
}

.icon-three {
    bottom: 20px;
    right: 110px;
    animation-delay: 2s;
}

@keyframes mainFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes iconFloat {

    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(6deg);
    }
}

@keyframes barAnim {
    from {
        transform: scaleY(.75);
    }

    to {
        transform: scaleY(1);
    }
}

@media(max-width:768px) {
    .mini-dashboard-img {
        width: 330px;
        height: 300px;
        margin-top: 120px;
    }

    .dash-window {
        height: 230px;
        border-radius: 24px;
    }

    .dash-sidebar {
        width: 65px;
        padding: 28px 14px;
    }

    .dash-content {
        padding: 22px;
    }

    .float-icon {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}





