/* Modern Clean Light Industrial Login Styles for Toppis */
body.login_admin {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #334155;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Canvas Background */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Moving Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.gradient-motion {
    position: absolute;
    width: 150vw;
    height: 150vh;
    top: -25vh;
    left: -25vw;
    background: radial-gradient(circle at 50% 50%, rgba(0, 98, 177, 0.15) 0%, rgba(59, 130, 246, 0.08) 40%, rgba(255, 255, 255, 0) 70%);
    animation: gradient-move 18s infinite alternate ease-in-out;
    z-index: 1;
}

/* Abstract Background Shapes */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 98, 177, 0.08);
    top: -100px;
    right: -100px;
    animation: pulse 12s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.05);
    bottom: 10%;
    left: 40%;
    animation: pulse 15s infinite alternate-reverse;
}

/* Thick Geometric Abstract Lines */
.thick-line {
    position: absolute;
    background: rgba(0, 98, 177, 0.06);
    z-index: 1;
    pointer-events: none;
    border-radius: 60px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.line-1 {
    width: 70vw;
    height: 140px;
    top: 15%;
    left: -10vw;
    transform: rotate(-25deg);
    animation: line-float-1 20s infinite alternate ease-in-out;
}

.line-2 {
    width: 90vw;
    height: 180px;
    bottom: 15%;
    right: -15vw;
    transform: rotate(15deg);
    animation: line-float-2 25s infinite alternate-reverse ease-in-out;
    background: rgba(59, 130, 246, 0.05);
}

@keyframes line-float-1 {
    0% {
        transform: translateX(-4vw) translateY(-2vw) rotate(-25deg);
    }

    100% {
        transform: translateX(4vw) translateY(2vw) rotate(-20deg);
    }
}

@keyframes line-float-2 {
    0% {
        transform: translateX(4vw) translateY(2vw) rotate(15deg);
    }

    100% {
        transform: translateX(-4vw) translateY(-2vw) rotate(10deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(50px, 30px);
    }
}

@keyframes gradient-move {
    0% {
        transform: translate(-8vw, -8vh) scale(1);
    }

    100% {
        transform: translate(12vw, 12vh) scale(1.4);
    }
}

/* Animated Background Icons */
.industrial-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.bg-icon {
    position: absolute;
    color: rgba(0, 98, 177, 0.04);
    pointer-events: none;
    animation: float 25s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Layout */
.login-container {
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 10;
    position: relative;
}

.login-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
}

.login-left h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.login-left p {
    font-size: 1.25rem;
    color: #64748b;
    margin-top: 12px;
}

.toppan-brand-logo img {
    max-width: 250px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Push to the right */
    padding-right: 12%;
    /* controlled distance from the edge */
}

/* Glassmorphism Login Card - Light Version */
.authentication-form-wrapper {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 40px 80px -20px rgba(0, 48, 96, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.01), 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

.login_admin .form-control {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #e2e8f0;
    color: #1e293b;
    height: 42px;
    border-radius: 10px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.login_admin .form-control:focus {
    background: #fff;
    border-color: #0062b1;
    box-shadow: 0 0 0 4px rgba(0, 98, 177, 0.1);
}

.login_admin label {
    color: #475569;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.login_admin .btn-primary {
    background: #0062b1;
    border: none;
    height: 42px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 98, 177, 0.2), 0 2px 4px -1px rgba(0, 98, 177, 0.1);
}

.login_admin .btn-primary:hover {
    background: #005091;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 98, 177, 0.25);
}

.login_admin .btn-primary:active {
    transform: translateY(0);
}

.login_admin a.text-muted {
    color: #64748b !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login_admin a.text-muted:hover {
    color: #0062b1 !important;
}

/* Custom Checkbox Styling */
.login_admin .checkbox label::before {
    border-radius: 6px;
    border: 2px solid #cbd5e1;
}

.login_admin .checkbox input[type="checkbox"]:checked+label::before {
    background-color: #0062b1;
    border-color: #0062b1;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-right {
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    body.login_admin {
        overflow-y: auto;
        height: auto;
    }

    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 80px 24px 40px;
        align-items: center;
        text-align: center;
        flex: 0;
    }

    .login-left h1 {
        font-size: 2.25rem;
    }

    .login-right {
        padding: 0 24px 80px;
        flex: 1;
    }
}