/**
 * @file        auth-login.css
 * @project     ucha-se-da-karam-platforma
 *
 * @license     Proprietary (Client Ownership Transfer After Final Payment)
 *              This file is part of a custom software project developed by
 *              IT Business Systems Ltd for the client.
 *
 *              Ownership of first-party project code is transferred to the client
 *              after final payment, according to the signed agreement.
 *
 *              Third-party libraries and dependencies remain under their own
 *              respective licenses and are not transferred as proprietary ownership.
 *
 * @author      banko.zhelyazkov
 * @company     IT Business Systems Ltd
 * @contact     info@itbs.bg
 * @date        11/05/2026
 *
 * @package     Public
 */

:root {
    --brand-cyan: #29c2dc;
    --brand-lime: #dfe877;
    --brand-green: #15ea55;
    --brand-violet: #cc79d6;
    --brand-violet-dark: #a94dc0;
    --brand-navy: #0b4f7f;
    --ink: #0d3555;
    --ink-soft: #3d6078;
    --border: #9fdff0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #dcf8ff 0%, #f5e6fa 55%, #e7ffe1 100%);
    display: grid;
    place-items: center;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.car-shell {
    width: min(96vw, 930px);
    background: #ffffff;
    border: 2px solid #6edaf0;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(13, 53, 85, 0.15);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
}

.car-visual {
    position: relative;
    background: linear-gradient(180deg, #a94dc0 0%, #cc79d6 100%);
    padding: 34px;
    color: #fff;
}

.car-body {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    height: 180px;
    border-radius: 90px 90px 26px 26px;
    background: linear-gradient(145deg, var(--brand-cyan), #49d3e8);
    border: 4px solid var(--brand-navy);
}

.car-body::before {
    content: "";
    position: absolute;
    left: 56px;
    top: -70px;
    width: 210px;
    height: 90px;
    border-radius: 60px 60px 0 0;
    background: var(--brand-lime);
    border: 4px solid var(--brand-navy);
    border-bottom: 0;
}

.car-body::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 70px;
    height: 24px;
    border-radius: 16px;
    background: var(--brand-green);
}

.wheel,
.wheel-right {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--brand-navy);
    bottom: -24px;
}

.wheel { left: 52px; }
.wheel-right { right: 52px; }

.brand-title {
    position: relative;
    z-index: 2;
}

.brand-title img {
    width: 86px;
    height: 86px;
    display: block;
    margin-bottom: 10px;
}

.brand-title h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
}

.brand-title p {
    margin: 8px 0 0;
    color: #f4fbff;
    font-weight: 600;
}

.login-panel {
    padding: 28px;
    background: #f9feff;
}

.login-panel h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.login-panel p {
    margin: 0 0 16px;
    color: var(--ink-soft);
}

form {
    display: grid;
    gap: 10px;
}

label {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 700;
}

input {
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
}

button {
    min-height: 46px;
    border: 1px solid rgba(11, 79, 127, 0.24);
    border-radius: 10px;
    background: linear-gradient(145deg, var(--brand-cyan), #44d0e6);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.error {
    margin: 0 0 8px;
    color: #b42318;
    font-size: 14px;
}

.register-link {
    margin-top: 10px;
    font-size: 14px;
}

.register-link a {
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 920px) {
    .car-shell {
        grid-template-columns: 1fr;
    }

    .car-visual {
        min-height: 280px;
    }

    .login-panel {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .car-shell {
        border-radius: 16px;
    }

    .car-visual {
        min-height: 230px;
        padding: 20px;
    }

    .brand-title h1 {
        font-size: 26px;
    }

    .car-body {
        height: 128px;
        border-radius: 70px 70px 20px 20px;
    }

    .car-body::before {
        left: 34px;
        top: -52px;
        width: 150px;
        height: 66px;
    }

    .wheel,
    .wheel-right {
        width: 46px;
        height: 46px;
        bottom: -18px;
    }
}
