
:root {
    --red: #e60012;
    --dark: #111;
    --bg: #f3f5f7;
    --green: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}

.admin-login-page {
    height: 100vh;
    padding: 18px 24px 46px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 6% 82%, rgba(230,0,18,.12), transparent 18%), radial-gradient(circle at 93% 6%, rgba(230,0,18,.11), transparent 17%), linear-gradient(135deg,#f7f8fa,#ffffff 55%,#f2f3f5);
}

.admin-login-card {
    width: min(1420px,96%);
    height: calc(100vh - 86px);
    min-height: 560px;
    max-height: 760px;
    background: #fff;
    display: grid;
    grid-template-columns: 50% 50%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(0,0,0,.13);
    animation: cardEntry .85s ease both;
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* LEFT */
.admin-visual {
    position: relative;
    overflow: hidden;
    background: #fff6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

    .admin-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.22) 45%, transparent 70%);
        transform: translateX(-120%);
        animation: imageShine 5s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes imageShine {
    0% {
        transform: translateX(-120%);
    }

    45% {
        transform: translateX(120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.visual-logo-card {
    position: absolute;
    top: 22px;
    left: 26px;
    z-index: 30;
    width: 205px;
    padding: 10px 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 15px;
    box-shadow: 0 18px 38px rgba(0,0,0,.12);
    backdrop-filter: blur(14px);
    animation: logoFloat 4.5s ease-in-out infinite;
}

    .visual-logo-card img {
        width: 100%;
        display: block;
    }

@keyframes logoFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.admin-login-svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    transform-origin: center;
    animation: svgFloat 5.5s ease-in-out infinite;
}

@keyframes svgFloat {
    0%,100% {
        transform: scale(.94) translateX(-10px) translateY(0);
    }

    50% {
        transform: scale(.955) translateX(-10px) translateY(-6px);
    }
}

.float-slow {
    animation: floatSlow 5.8s ease-in-out infinite;
    transform-origin: center;
}

.float-med {
    animation: floatMed 4.5s ease-in-out infinite;
    transform-origin: center;
}

.float-fast {
    animation: floatFast 3.5s ease-in-out infinite;
    transform-origin: center;
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
    transform-origin: center;
}

.chat-one {
    animation: chatMove 3.8s ease-in-out infinite;
}

.chat-two {
    animation: chatMove 4.4s ease-in-out infinite reverse;
}

.bar-a {
    animation: barMove 2.2s ease-in-out infinite;
    transform-origin: bottom;
}

.bar-b {
    animation: barMove 2.2s .2s ease-in-out infinite;
    transform-origin: bottom;
}

.bar-c {
    animation: barMove 2.2s .4s ease-in-out infinite;
    transform-origin: bottom;
}

.bar-d {
    animation: barMove 2.2s .6s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes floatSlow {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes floatMed {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatFast {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes pulse {
    0%,100% {
        opacity: .6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes chatMove {
    0%,100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(7px);
    }
}

@keyframes barMove {
    0%,100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(.65);
    }
}

/* RIGHT */
.admin-form-side {
    height: 100%;
    position: relative;
    background: radial-gradient(circle at 85% 10%, rgba(230,0,18,.09), transparent 28%), radial-gradient(circle at 12% 92%, rgba(230,0,18,.06), transparent 24%), linear-gradient(180deg,#fff 0%,#fbfbfb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 54px;
    overflow: hidden;
}

.admin-form-box {
    width: 100%;
    max-width: 500px;
    padding: 26px 36px 30px;
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 28px 78px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    animation: formPremiumEntry .9s ease both;
}

    .admin-form-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 42px;
        right: 42px;
        height: 5px;
        border-radius: 0 0 30px 30px;
        background: linear-gradient(90deg,#e60012,#111,#e60012);
    }

@keyframes formPremiumEntry {
    from {
        opacity: 0;
        transform: translateX(45px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.brand-box {
    text-align: center;
    margin-bottom: 22px;
    animation: fadeUp .85s ease both;
}

.brand-title {
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 4px;
    color: #111;
}

    .brand-title span {
        color: var(--red);
    }

.brand-line {
    width: 90px;
    height: 3px;
    margin: 12px auto 10px;
    background: linear-gradient(90deg,var(--red),#111);
    border-radius: 40px;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 800;
    color: #6f737a;
    letter-spacing: 4px;
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: #000;
    margin-bottom: 24px;
    animation: fadeUp .85s ease both;
}

    .login-title::after {
        content: "";
        display: block;
        width: 42px;
        height: 3px;
        margin: 10px auto 0;
        border-radius: 20px;
        background: var(--red);
    }

.form-group {
    margin-bottom: 16px;
    animation: fadeUp .85s ease both;
}

.input-box {
    position: relative;
    height: 56px;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    transform: translateY(-50%);
    background: #fff;
    color: #0d3d5a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 9;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(0,0,0,.07);
    transition: .35s ease;
}

.input-box input {
    width: 100%;
    height: 56px;
    border-radius: 17px;
    border: 1px solid #eeeeee;
    outline: none;
    background: #f1f2f4;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    padding: 0 20px 0 64px;
    position: relative;
    z-index: 1;
    transition: .35s ease;
}

    .input-box input::placeholder {
        color: #a6afbd;
        font-weight: 500;
    }

    .input-box input:focus {
        background: #fff;
        border-color: var(--red);
        box-shadow: 0 0 0 5px rgba(230,0,18,.08), 0 14px 30px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }

.input-box:focus-within .input-icon {
    background: var(--red);
    color: #fff;
    transform: translateY(-50%) scale(1.06) rotate(-4deg);
    box-shadow: 0 10px 22px rgba(230,0,18,.25);
}

.login-helper-text {
    margin: -2px 0 16px;
    text-align: center;
    font-size: 12px;
    color: #747b86;
    font-weight: 600;
    animation: fadeUp .85s ease both;
}

    .login-helper-text span {
        color: var(--red);
        font-weight: 900;
    }

.login-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(135deg,#e60012 0%,#d30010 55%,#111 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.4px;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(230,0,18,.32);
    position: relative;
    overflow: hidden;
    transition: .35s ease;
    animation: fadeUp .85s ease both;
}

    .login-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 80%;
        height: 100%;
        background: linear-gradient(90deg,transparent,rgba(255,255,255,.48),transparent);
        transform: skewX(-22deg);
        transition: .75s ease;
    }

    .login-btn:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 28px 55px rgba(230,0,18,.40);
    }

        .login-btn:hover::before {
            left: 130%;
        }

.btn-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: .3s ease;
}

.login-btn:hover .btn-arrow {
    transform: translateX(8px);
}

.login-status {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    animation: fadeUp .85s ease both;
}

    .login-status::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #25D366;
        box-shadow: 0 0 0 7px rgba(37,211,102,.13);
        animation: greenPulse 1.8s ease-in-out infinite;
    }

@keyframes greenPulse {
    0%,100% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(37,211,102,.13);
    }

    50% {
        transform: scale(1.18);
        box-shadow: 0 0 0 12px rgba(37,211,102,0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    text-align: center;
    color: #6b7c8d;
    font-size: 13px;
    font-weight: 600;
}

    .admin-footer span {
        color: var(--red);
        font-weight: 800;
    }

/* RESPONSIVE */
@media(max - width:991px) {
    html, body {
        height: auto;
        overflow-y: auto;
    }

    .admin-login-page {
        height: auto;
        min-height: 100vh;
        padding: 22px 16px 50px;
        display: block;
    }

    .admin-login-card {
        height: auto;
        max-height: none;
        grid-template-columns: 1fr;
        width: 96%;
    }

    .admin-visual {
        height: 520px;
        min-height: 520px;
    }

    .admin-login-svg {
        height: 520px;
    }

    .admin-form-side {
        height: auto;
        padding: 34px 28px;
    }

    .admin-footer {
        position: relative;
        margin-top: 18px;
        bottom: auto;
    }
}

@media(max - width:575px) {
    .admin-visual {
        height: 360px;
        min-height: 360px;
    }

    .admin-login-svg {
        height: 360px;
    }

    .visual-logo-card {
        width: 180px;
        top: 18px;
        left: 18px;
    }

    .admin-form-box {
        padding: 24px 20px 28px;
        border-radius: 22px;
    }

    .brand-title {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .brand-subtitle {
        letter-spacing: 2px;
    }

    .login-title {
        font-size: 24px;
    }

    .input-box, .input-box input {
        height: 54px;
    }

    .login-btn {
        height: 54px;
    }
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
    border: 1px solid transparent;
}

/* Danger Variant */
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

    /* Optional: strong text */
    .alert-danger strong {
        font-weight: 600;
    }

    /* Optional icon spacing */
    .alert-danger i {
        margin-right: 6px;
    }
