* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f3f6f8;
    color: #101722;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.container {
    width: min(1360px, calc(100% - 40px));
    margin: auto;
}


/* ==========================================
   LOGOWANIE
========================================== */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    color: white;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(239, 51, 64, 0.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(25, 100, 170, 0.18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #06101a,
            #101c28
        );
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 680px;

    display: grid;
    grid-template-columns: 1fr 470px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 28px;

    background:
        rgba(8, 17, 27, 0.78);

    box-shadow:
        0 40px 100px
        rgba(0, 0, 0, 0.42);
}

.login-left {
    padding: 52px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(239, 51, 64, 0.12),
            transparent 30%
        );
}

.login-brand,
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;
}

.brand-icon svg {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-name span {
    color: #ef3340;
}

.brand-small {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 12px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: #ff707a;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-hero {
    max-width: 590px;
}

.login-hero h1 {
    margin: 0;

    font-size: clamp(45px, 5vw, 67px);

    line-height: 0.98;

    letter-spacing: -2.5px;
}

.login-hero p {
    max-width: 520px;

    margin: 24px 0 0;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 16px;

    line-height: 1.7;
}

.login-features {
    display: flex;
    gap: 25px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-feature > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.05);
}

.login-feature svg {
    width: 18px;
}

.login-feature strong {
    display: block;

    font-size: 11px;
}

.login-feature small {
    display: block;

    margin-top: 3px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 9px;
}

.login-right {
    padding: 46px;

    display: flex;
    align-items: center;

    background: #ffffff;

    color: #101722;
}

.auth-box {
    width: 100%;
}

.auth-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 20px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #ef3340,
            #ff5964
        );
}

.auth-box h2 {
    margin: 0;

    font-size: 33px;

    letter-spacing: -1px;
}

.auth-description {
    margin: 9px 0 28px;

    color: #758291;

    font-size: 13px;
}

.auth-box form,
.vehicle-modal form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.auth-box label,
.vehicle-modal label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    color: #354250;

    font-size: 12px;
    font-weight: 700;
}

.input-box {
    position: relative;
}

.input-box > svg {
    position: absolute;

    left: 14px;
    top: 50%;

    width: 19px;

    transform:
        translateY(-50%);

    color: #8a96a2;
}

.input-box input {
    padding-left: 44px;
    padding-right: 45px;
}

input {
    width: 100%;
    height: 50px;

    padding: 0 13px;

    border: 1px solid #dde3e8;

    border-radius: 11px;

    outline: none;

    background: #f8fafb;

    color: #111827;
}

input:focus {
    border-color: #ef3340;

    background: white;

    box-shadow:
        0 0 0 4px
        rgba(239, 51, 64, 0.08);
}

.show-password {
    position: absolute;

    right: 8px;
    top: 50%;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    transform:
        translateY(-50%);

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #82909e;
}

.show-password:hover {
    background: #edf1f4;
}

.show-password svg {
    width: 18px;
}

.auth-submit {
    height: 51px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #ef3340,
            #ff515d
        );

    color: white;

    font-weight: 800;

    box-shadow:
        0 12px 30px
        rgba(239, 51, 64, 0.22);
}

.auth-submit:hover {
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.form-error {
    min-height: 16px;

    color: #df2938;

    font-size: 12px;
    font-weight: 600;
}

.auth-change {
    margin: 22px 0 0;

    text-align: center;

    color: #778492;

    font-size: 13px;
}

.auth-change button {
    padding: 0;

    border: 0;

    background: transparent;

    color: #ef3340;

    font-weight: 800;
}

.auth-change button:hover {
    text-decoration: underline;
}

.auth-security {
    margin-top: 30px;

    padding-top: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

    border-top: 1px solid #e8ebef;

    color: #8995a1;

    font-size: 10px;
}

.auth-security svg {
    width: 15px;

    color: #18a957;
}


/* ==========================================
   GŁÓWNA STRONA
========================================== */

.hero {
    min-height: 455px;

    color: white;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(239, 51, 64, 0.2),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 100%,
            rgba(30, 91, 150, 0.17),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #07111b,
            #101d29
        );
}

.main-header {
    height: 90px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-bell {
    position: relative;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;
}

.header-bell span {
    position: absolute;

    right: -5px;
    top: -5px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    display: grid;
    place-items: center;

    border-radius: 20px;

    background: #ef3340;

    font-size: 10px;
    font-weight: 800;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 12px;
    font-weight: 600;
}

.user-circle {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.9);

    color: #26313c;
}

.logout-button {
    height: 39px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    gap: 7px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 9px;

    background: transparent;

    color: white;

    font-size: 11px;
    font-weight: 700;
}

.logout-button:hover {
    border-color: #ef3340;

    background: #ef3340;
}

.logout-button svg {
    width: 16px;
}

.hero-content {
    min-height: 345px;

    padding-bottom: 43px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(380px, 0.85fr);

    align-items: center;

    gap: 70px;
}

.hero-copy h1 {
    max-width: 710px;

    margin: 0;

    font-size:
        clamp(
            42px,
            5vw,
            61px
        );

    line-height: 1;

    letter-spacing: -2px;
}

.hero-copy p {
    max-width: 640px;

    margin: 21px 0 0;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 17px;

    line-height: 1.6;
}

.main-button {
    min-height: 48px;

    margin-top: 25px;

    padding: 0 20px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #ef3340,
            #ff515c
        );

    color: white;

    font-weight: 800;

    box-shadow:
        0 11px 30px
        rgba(239, 51, 64, 0.22);
}

.hero-summary {
    padding: 25px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 19px;

    background:
        rgba(0, 0, 0, 0.17);
}

.summary-title {
    margin-bottom: 10px;
    padding-bottom: 17px;

    display: flex;
    align-items: center;
    gap: 13px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.summary-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #ef3340;
}

.summary-title small {
    display: block;

    margin-bottom: 4px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 9px;
    letter-spacing: 1.5px;
}

.summary-title strong {
    font-size: 15px;
}

.summary-row {
    padding: 11px 0;

    display: grid;

    grid-template-columns:
        38px
        1fr;

    gap: 11px;

    align-items: center;
}

.summary-row > svg {
    width: 20px;
}

.summary-row strong {
    display: block;

    font-size: 12px;
}

.summary-row small {
    display: block;

    margin-top: 3px;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 10px;
}


/* ==========================================
   DASHBOARD
========================================== */

main {
    padding: 30px 0 60px;
}

.dashboard {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(330px, 1fr);

    gap: 24px;
}

.panel {
    border: 1px solid #e1e6eb;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 16px 45px
        rgba(16, 24, 40, 0.06);
}

.vehicles-panel {
    padding: 25px;
}

.panel-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.panel-header h2,
.deadline-panel h2 {
    margin: 5px 0 15px;
}

.section-small {
    color: #98a3ae;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.add-vehicle-button {
    display: flex;
    align-items: center;
    gap: 7px;

    border: 0;

    background: transparent;

    color: #ef3340;

    font-weight: 800;
}


/* ==========================================
   POJAZDY
========================================== */

.vehicle {
    min-height: 112px;

    display: grid;

    grid-template-columns:
        minmax(190px, 1.2fr)
        repeat(3, minmax(120px, 1fr))
        42px;

    align-items: center;

    border-top: 1px solid #e5e9ed;
}

.vehicle-main {
    display: flex;

    align-items: center;

    gap: 13px;
}

.vehicle-icon {
    width: 47px;
    height: 47px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #eef2f5;
}

.vehicle-icon svg {
    width: 23px;
}

.vehicle-name {
    font-size: 15px;
    font-weight: 800;
}

.vehicle-plate {
    display: inline-block;

    margin-top: 7px;

    padding: 5px 8px;

    border-radius: 7px;

    background: #edf1f4;

    color: #45515e;

    font-size: 11px;
    font-weight: 600;
}

.vehicle-status {
    min-height: 70px;

    padding: 8px 13px;

    border-left: 1px solid #e5e9ed;
}

.vehicle-status strong {
    display: block;

    font-size: 12px;
}

.vehicle-status small {
    display: block;

    margin-top: 5px;

    color: #778491;

    font-size: 10px;
}

.vehicle-status .status-value {
    margin-top: 4px;

    font-size: 12px;
    font-weight: 800;
}

.status-green {
    color: #18a957;
}

.status-orange {
    color: #f08b19;
}

.status-red {
    color: #ef3340;
}

.delete-button {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #ef3340;
}

.delete-button:hover {
    background: #ef3340;

    color: white;
}


/* ==========================================
   TERMINY
========================================== */

aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deadline-panel {
    padding: 24px;
}

.deadline {
    padding: 13px 0;

    display: grid;

    grid-template-columns:
        42px
        1fr
        auto;

    gap: 12px;

    align-items: center;

    border-top: 1px solid #e5e9ed;
}

.deadline-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: white;
}

.deadline-icon.red {
    background: #ef3340;
}

.deadline-icon.orange {
    background: #f08b19;
}

.deadline-icon.green {
    background: #18a957;
}

.deadline strong {
    display: block;

    font-size: 12px;
}

.deadline small {
    display: block;

    margin-top: 4px;

    font-size: 10px;
}

.deadline-date {
    color: #778491;

    font-size: 10px;
}

.reminder-panel {
    padding: 24px;

    display: flex;

    align-items: flex-start;

    gap: 15px;

    border-radius: 18px;

    color: white;

    background:
        radial-gradient(
            circle at 90% 0,
            rgba(239, 51, 64, 0.22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0a1420,
            #172838
        );

    box-shadow:
        0 16px 45px
        rgba(16, 24, 40, 0.08);
}

.reminder-icon {
    width: 47px;
    height: 47px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #ef3340;
}

.reminder-panel h3 {
    margin: 1px 0 8px;
}

.reminder-panel p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 12px;

    line-height: 1.55;
}

.empty-state {
    padding: 35px 15px;

    border-top: 1px solid #e5e9ed;

    color: #778491;

    text-align: center;

    font-size: 12px;
}


/* ==========================================
   MODAL DODAWANIA AUTA
========================================== */

.modal-background {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.68);

    backdrop-filter: blur(5px);
}

.modal-background.show {
    display: flex;
}

.vehicle-modal {
    position: relative;

    width: min(520px, 100%);

    padding: 30px;

    border-radius: 20px;

    background: white;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.3);
}

.vehicle-modal h2 {
    margin: 5px 0 6px;

    font-size: 28px;
}

.vehicle-modal > p {
    margin: 0 0 23px;

    color: #74818e;

    font-size: 12px;
}

.modal-close {
    position: absolute;

    top: 17px;
    right: 17px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 0;

    border-radius: 10px;

    background: #eef2f5;
}

.form-columns {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}

.modal-submit {
    width: 100%;

    margin-top: 4px;
}


/* ==========================================
   RESPONSYWNOŚĆ
========================================== */

@media (max-width: 1000px) {

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: 390px;
    }

    .login-right {
        padding: 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-summary {
        margin-bottom: 30px;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 760px) {

    .container {
        width: calc(100% - 24px);
    }

    .login-page {
        padding: 10px;
    }

    .login-shell {
        border-radius: 20px;
    }

    .login-left {
        min-height: 315px;

        padding: 28px;
    }

    .login-hero h1 {
        font-size: 40px;
    }

    .login-hero p {
        font-size: 14px;
    }

    .login-features {
        display: none;
    }

    .login-right {
        padding: 32px 23px;
    }

    .brand-small {
        display: none;
    }

    .header-user span {
        display: none;
    }

    .logout-button {
        font-size: 0;
    }

    .logout-button svg {
        width: 18px;
    }

    .hero-copy h1 {
        font-size: 41px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .vehicle {
        grid-template-columns:
            1fr
            40px;

        padding: 15px 0;
    }

    .vehicle-main {
        grid-column: 1;
    }

    .vehicle-status {
        grid-column: 1 / -1;

        min-height: auto;

        margin-top: 10px;

        border-left: 0;

        border-top:
            1px dashed
            #e1e6eb;
    }

    .delete-button {
        grid-column: 2;
        grid-row: 1;
    }

    .form-columns {
        grid-template-columns: 1fr;
    }

}

textarea {
    width: 100%;
    min-height: 110px;

    padding: 13px;

    resize: vertical;

    border: 1px solid #dde3e8;

    border-radius: 11px;

    outline: none;

    background: #f8fafb;

    color: #111827;

    font-family: inherit;
}


textarea:focus {
    border-color: #ef3340;

    background: white;

    box-shadow:
        0 0 0 4px
        rgba(239, 51, 64, 0.08);
}


.vehicle-extra {
    display: flex;

    flex-direction: column;

    gap: 3px;

    margin-top: 8px;

    color: #778491;

    font-size: 10px;
}


.vehicle-extra b {
    color: #3e4955;
}


.vehicle-note {
    grid-column: 1 / -1;

    display: flex;

    gap: 10px;

    margin: 0 0 13px;

    padding: 12px 14px;

    border-radius: 10px;

    background: #f5f7f9;

    color: #5e6b78;
}


.vehicle-note > svg {
    width: 17px;

    flex-shrink: 0;

    color: #ef3340;
}


.vehicle-note strong {
    display: block;

    margin-bottom: 3px;

    color: #303b46;

    font-size: 11px;
}


.vehicle-note p {
    margin: 0;

    font-size: 11px;

    line-height: 1.5;
}