:root {
    --mantox-blue: #5799F6;
    --mantox-dark: #000000;

    --text-color: #333333;
    --text-light: #888888;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter';
    background: #f0f2f5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-card {
    display: flex;
    width: 1000px;
    height: 600px;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Left Art Panel */
.art-panel {
    flex: 1;
    background: var(--mantox-dark);
    /* Changed to Black */
    position: relative;
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.art-content {
    position: relative;
    z-index: 10;
}

.art-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.separator-line {
    width: 60px;
    height: 4px;
    background: var(--mantox-blue);
    /* Kept blue/cyan accent */
    margin-bottom: 30px;
}

.art-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 80%;
}

.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--mantox-blue);
    border-color: var(--mantox-blue);
    color: var(--white);
}

/* Geometric Shapes */
.shape {
    position: absolute;
    border-radius: 40px;
    opacity: 1;
}

/* Top Left Shape - Border Style */
.shape-1 {
    width: 150px;
    height: 150px;
    border: 15px solid rgba(255, 255, 255, 0.1);
    /* Faint white/grey on black */
    top: -40px;
    left: 40px;
    transform: rotate(45deg);
}

/* Top Center - Blue Solid */
.shape-2 {
    width: 80px;
    height: 80px;
    border: 10px solid var(--mantox-blue);
    /* Cyan/Blue Accent */
    top: -20px;
    left: 50%;
    border-radius: 25px;
    transform: rotate(20deg);
}

/* Bottom Right Large Shape - Semi-circle/Abstract */
.shape-3 {
    width: 300px;
    height: 300px;
    border: 30px solid var(--white);
    /* White/Bold Contrast */
    background: transparent;
    bottom: -150px;
    right: -50px;
    border-radius: 60px;
    transform: rotate(45deg);
}

/* Form Panel */
.form-panel {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.form-content {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.logo-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    height: 144px;
    object-fit: contain;
}

.form-content h2 {
    color: var(--mantox-dark);
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.form-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--mantox-dark);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 15px 10px;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group .icon {
    position: absolute;
    right: 10px;
    top: 15px;
    color: #ccc;
    font-size: 1.2rem;
}

.input-group input:focus {
    border-bottom-color: var(--mantox-dark);
}

.input-group input::placeholder {
    color: #bbb;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: var(--mantox-dark);
    /* Black Button */
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-login:hover {
    background: #333333;
    /* Dark Grey on Hover */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        height: auto;
        width: 100%;
        max-width: 500px;
    }

    .art-panel {
        min-height: 300px;
        padding: 40px;
    }

    .form-panel {
        padding: 40px;
    }

    .shape-1 {
        display: none;
    }
}

/* Hide logo on very small screens to save space */
@media (max-width: 480px),
(max-height: 700px) {
    .logo-wrapper {
        display: none;
    }
}

/* Mobile fix for no-scroll and squashed layout */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        /* Allow scrolling again */
    }

    .login-container {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
        align-items: stretch;
        height: auto;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .art-panel {
        min-height: auto;
        flex: 0 0 auto;
        /* Don't force 35%, let it be content-based or fixed small size */
        padding: 40px 20px;
        justify-content: center;
        /* Give it a reasonable height but allow it to shrink/grow slightly if needed, 
           or just keep it auto to wrap content. 
           Let's set a controlled height or padding so it doesn't disappear or get too big. */
    }

    .art-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .separator-line {
        margin-bottom: 15px;
    }

    .art-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
        display: none;
        /* Hide paragraph on mobile to save space if needed, or keep it short */
    }

    /* Reveal paragraph if requested, but for "squashed" fixes, reducing content helps. 
       Let's keep the paragraph visible but ensure container grows. */
    .art-content p {
        display: block;
    }

    .form-panel {
        flex: 1 0 auto;
        /* Allow it to grow and set basis to auto */
        padding: 40px 30px;
        align-items: center;
        /* Center vertically if space allows */
        padding-top: 40px;
        background: var(--white);
        border-top-left-radius: 30px;
        /* Visual overlay effect maybe? Optional */
        border-top-right-radius: 30px;
        margin-top: -20px;
        /* Overlap art panel slightly for modern look, or 0 */
        margin-top: 0;
    }

    .form-content {
        width: 100%;
        max-width: 100%;
    }

    .form-content h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
        margin-top: 0;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-group input {
        padding: 10px 5px;
    }

    .btn-login {
        padding: 12px;
        margin-top: 10px;
    }

    /* Adjust shape to not be too intrusive on small screens */
    .shape-3 {
        width: 150px;
        height: 150px;
        border-width: 15px;
        bottom: -50px;
        right: -30px;
    }
}