﻿:root {
    --blue: #1f3f78;
    --blue-dark: #17315e;
    --green: #087b0b;
    --green-hover: #096b0b;
    --green-soft: #eaf6eb;
    --text: #222;
    --muted: #6d747a;
    --border: #d5d9dd;
    --border-dark: #bfc5ca;
    --surface: #fff;
    --page: #fff;
    --grey-circle: #e5e7e9;
    --grey-line: #d5d9dd;
    --help: #888;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: var(--text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.45;
}

body {
    overflow-x: hidden;
}

.page {
    width: min(100% - 32px, 980px);
    margin: 28px auto;
    background: #fff;
}

.card {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 28px 30px 30px;
}

/* Header */
.header {
    position: relative;
    padding-right: 155px;
    min-height: 72px;
}

.title {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #171717;
}

.description {
    margin: 0;
    font-size: 19px;
    color: #525252;
}

.logo {
    position: absolute;
    right: 0;
    top: -4px;
    width: 80px;
    height: 60px;
}


/* Form */
.form {
    width: 100%;
}

.user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px;
    gap: 10px;
}

.phone-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

    .phone-row input {
        text-align: left;
    }

.hint {
    color: #73787c;
    font-size: 13px;
    line-height: 1.4;
}

/* Help */
.help {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 20px;
    color: var(--help);
    font-size: 13px;
    line-height: 1.35;
}

.help-icon {
    width: 27px;
    height: 27px;
    min-width: 27px;
    border: 2px solid #aaa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #888;
    margin-top: -2px;
}

.portal-info {
    bottom: 18px;
    right: 20px;
    background-color: rgba(245, 245, 245, 0.7);
    color: darkgray;
    padding: 10px 10px 10px 10px;
    border-radius: 8px;
    z-index: 1000;
    font-size: 8pt;
}

/* Tablet */
@media (max-width: 800px) {
    .page {
        width: min(100% - 24px, 680px);
        margin: 18px auto;
    }

    .card {
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 24px;
    }

    .header {
        padding-right: 125px;
    }

    .logo {
        width: 70px;
        height: 50px;
    }

    .label {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 800px) {
    html,
    body {
        background: #fff !important;
    }

    .page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        background: #fff;
    }

    .card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 16px 28px;
    }

    .header {
        padding-right: 0;
        min-height: 0;
        padding-bottom: 8px;
    }

    .logo {
        position: static;
        display: block;
        width: 60px;
        height: 40px;
        margin: 0 auto 12px auto;
    }

    .title {
        font-size: 21px;
    }

    .description {
        font-size: 16px;
        color: #525252;
    }

    .user-row,
    .phone-row {
        grid-template-columns: 1fr;
    }

    .user-row {
        gap: 9px;
    }

    .phone-row {
        gap: 7px;
        margin-top: 9px;
    }

    .hint {
        padding: 1px 2px 0;
    }

    .help {
        margin-top: 22px;
        font-size: 13px;
    }
}
