* {
    box-sizing: border-box;
}


/* =========================================================
   Base
========================================================= */

body {
    font-family: Arial, sans-serif;

    margin: 0;
    padding: 32px;

    background: #f5f6f8;
    color: #222;
}


/* =========================================================
   Main container
========================================================= */

.container {
    max-width: 1150px;

    margin: auto;
    padding: 28px;

    background: white;

    border-radius: 8px;
}


/* =========================================================
   UFX header
========================================================= */

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
    padding: 12px 20px;

    background: #101d31;

    border-radius: 6px;
}

.brand-left {
    display: flex;
    align-items: center;

    gap: 20px;
}

.brand-logo {
    width: 190px;
    height: auto;
}

.brand-section {
    padding-left: 20px;

    border-left:
        1px solid rgba(255, 255, 255, 0.4);

    color: white;

    font-size: 24px;
    font-weight: bold;
}

.brand-user {
    display: flex;
    align-items: center;

    gap: 18px;

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

    font-size: 14px;
}

.brand-logout {
    padding: 8px 14px;

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

    border-radius: 4px;

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

    color: white;

    cursor: pointer;
}

.brand-logout:hover {
    background:
        rgba(255, 255, 255, 0.18);
}


/* =========================================================
   Introduction
========================================================= */

.intro {
    margin-bottom: 28px;
}

.intro h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.intro p {
    margin: 5px 0;

    color: #555;

    line-height: 1.45;
}


/* =========================================================
   Platforms
========================================================= */

.platforms {
    display: grid;

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

    gap: 24px;

    align-items: start;
}

.platform-card {
    overflow: hidden;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: white;
}

.platform-header {
    padding: 18px 20px;

    border-bottom: 1px solid #ddd;

    background: #fafafa;
}

.platform-title {
    display: flex;
    align-items: center;

    gap: 14px;
}

.platform-header h2 {
    margin: 0;

    font-size: 22px;
}

.platform-header p {
    margin: 4px 0 0;

    color: #666;

    font-size: 14px;
}


/* =========================================================
   OS icons
========================================================= */

.platform-icon {
    width: 34px;
    height: 34px;

    object-fit: contain;

    flex-shrink: 0;
}


/* =========================================================
   Installation steps
========================================================= */

.install-step {
    display: grid;

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

    gap: 16px;

    padding: 22px 20px;

    border-bottom: 1px solid #ddd;
}

.install-step:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #1565c0;
    color: white;

    font-weight: bold;
}

.step-content {
    min-width: 0;
}

.step-content h3 {
    margin: 4px 0 8px;

    font-size: 17px;
}

.step-content > p {
    margin: 0 0 12px;

    color: #555;

    line-height: 1.45;
}


/* =========================================================
   Package filename
========================================================= */

.version {
    display: block;

    margin: 12px 0 !important;

    color: #666 !important;

    font-family: monospace;
    font-size: 12px;

    overflow-wrap: anywhere;
}


/* =========================================================
   Buttons
========================================================= */

button,
.download {
    padding: 8px 13px;

    border: 1px solid #aaa;
    border-radius: 4px;

    background: #f5f5f5;

    color: #222;

    font-family: Arial, sans-serif;
    font-size: 14px;

    cursor: pointer;
}

button:hover,
.download:hover {
    background: #e8e8e8;
}

button.primary,
.download.primary {
    border-color: #1565c0;

    background: #1565c0;

    color: white;
}

button.primary:hover,
.download.primary:hover {
    background: #0d55a5;
}

.download {
    display: inline-block;

    text-decoration: none;
}


/* =========================================================
   Installation instructions
========================================================= */

.instructions {
    margin-top: 16px;
    padding-top: 12px;

    border-top: 1px solid #eee;
}

.instructions p {
    margin: 5px 0;

    color: #666;

    font-size: 14px;

    line-height: 1.45;
}

.connect-steps {
    margin: 8px 0 0;

    padding-left: 20px;
}

.connect-steps li {
    margin: 6px 0;

    color: #555;

    line-height: 1.45;
}


/* =========================================================
   Help
========================================================= */

.help {
    margin-top: 28px;

    padding: 20px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fafafa;
}

.help h2 {
    margin: 0 0 8px;

    font-size: 18px;
}

.help p {
    margin: 0;

    color: #555;

    line-height: 1.45;
}


/* =========================================================
   Login
========================================================= */

.login-view h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.login-description {
    margin: 0 0 20px;

    color: #555;
}

.form-card {
    margin-top: 20px;

    padding: 20px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fafafa;
}

.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 5px;

    font-weight: bold;
}

input {
    padding: 9px;

    border: 1px solid #bbb;
    border-radius: 4px;

    background: white;

    color: #222;

    font-family: Arial, sans-serif;
    font-size: 14px;
}

input:focus {
    border-color: #1565c0;

    outline: none;

    box-shadow:
        0 0 0 2px rgba(21, 101, 192, 0.12);
}

.form-actions {
    margin-top: 20px;
}

.status {
    margin-top: 16px;

    padding: 0;

    color: #666;

    font-size: 14px;
}

.error {
    margin-top: 16px;

    color: #9d1717;

    font-size: 14px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 800px) {

    body {
        padding: 16px;
    }

    .container {
        padding: 18px;
    }

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

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

    .brand-logo {
        width: 150px;
    }

    .brand-section {
        font-size: 20px;
    }
}


@media (max-width: 550px) {

    .brand-header {
        gap: 16px;
    }

    .brand-left {
        gap: 12px;
    }

    .brand-logo {
        width: 125px;
    }

    .brand-section {
        padding-left: 12px;

        font-size: 17px;
    }

    .install-step {
        grid-template-columns:
            34px minmax(0, 1fr);

        gap: 12px;

        padding: 18px 16px;
    }

    .download {
        width: 100%;

        text-align: center;
    }
}
