/* Refactored login.css */
:root {
    --primary: #d90429;
    --primary-dark: #9f001b;
    --bg: #f6f7fb;
    --border: #ececec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

body {
    background: var(--bg);
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.left-panel {
    flex: 0 0 58%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(18, 18, 18, .78), rgba(120, 0, 0, .55)), url('/images/workshop.jpeg') center/cover no-repeat;
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
}

.left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 50, 50, .25), transparent 45%), radial-gradient(circle at bottom right, rgba(0, 0, 0, .45), transparent 55%);
}

.content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.logo {
    width: 250px;
    margin-bottom: 50px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.company-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 20px;
}

.company-type {
    display: block;
    margin-bottom: 18px;
    letter-spacing: 3px;
    color: #ffdede;
    font-size: 13px;
}

.content h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 18px;
    font-weight: 800;
}

.content h1 span {
    color: #ff5555;
}

.subtitle {
    line-height: 1.8;
    font-size: 17px;
    color: #f3f3f3;
    margin-bottom: 35px;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.features>div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    transition: .3s;
}

.features>div:hover {
    transform: translateY(-5px);
}

.features i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 14px;
}

.right-panel {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #fafafa, #f2f4f8);
    overflow: hidden;
}

.right-panel::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    top: -380px;
    right: -300px;
    background: linear-gradient(135deg, #ff3d3d, var(--primary-dark));
    opacity: .08
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(430px, 90%);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .12)
}

.login-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    border-radius: 28px 28px 0 0
}

.login-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ff2d2d, var(--primary-dark))
}

.input-group {
    margin-bottom: 18px
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600
}

.input-icon {
    display: flex;
    align-items: center;
    height: 58px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: #fff
}

.input-icon:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217, 4, 41, .08)
}

.input-icon i {
    width: 52px;
    text-align: center;
    color: #999
}

.input-icon input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    height: 100%
}

.btn-login {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #ff2d2d, var(--primary-dark));
    cursor: pointer
}

.footer {
    text-align: center;
    margin-top: 28px;
    color: #888
}

@media(max-width:992px) {
    .left-panel {
        display: none
    }

    .right-panel {
        flex: 1
    }

    body {
        overflow: auto
    }
}