html {
    -webkit-text-size-adjust: 100%;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.page-logo-slot {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    margin-right: 16px;
}

.page-logo-slot img {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 50%;
}

.page-header h1 {
    margin: 0;
}

@media (max-width: 640px) {
    .page-logo-slot {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        margin-right: 14px;
    }

    .page-logo-slot img {
        width: 48px;
        height: 48px;
    }
}

body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(180deg, #eef3fa 0%, #e5eaf2 100%);
    font-family: Arial, sans-serif;
    color: #1d2433;
}

.page-wrap {
    width: 100%;
    max-width: 560px;
    min-height: 420px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(31, 41, 55, 0.12);
}

.page-wrap-wide {
    max-width: 680px;
}

h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.18;
}

.subtitle {
    margin: 0 0 28px;
    color: #667085;
    font-size: 16px;
    line-height: 1.45;
}

.form-card {
    margin: 0;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    height: 58px;
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #cfd6df;
    border-radius: 12px;
    background: #fff;
    color: #1d2433;
    font-size: 20px;
}

input:focus {
    outline: 3px solid rgba(47, 102, 224, 0.18);
    border-color: #2f66e0;
}

button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    background: #2f66e0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #2554bb;
}

button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.message {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 16px;
    line-height: 1.45;
}

.message.error,
.error {
    background: #ffe8e8;
    color: #a40014;
}

.message.success,
.success {
    background: #e8f7ee;
    color: #0f6b36;
}

.hint {
    margin: 10px 0 0;
    color: #667085;
    font-size: 15px;
}

.generated-password-box {
    margin-bottom: 24px;
}

.generated-password-box p {
    margin: 0 0 10px;
}

.generated-password {
    display: block;
    width: 100%;
    padding: 18px;
    border: 2px dashed #bfc7d4;
    border-radius: 12px;
    background: #fbfcfe;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.upload-box {
    margin: 0 0 24px;
}

.upload-box input[type="file"] {
    position: absolute;
    left: -9999px;
}

.upload-label {
    display: block;
    padding: 30px;
    border: 2px dashed #9aa4b2;
    border-radius: 14px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
}

.upload-box.dragover .upload-label,
.upload-label:hover {
    background: #eef3ff;
    border-color: #2f66e0;
}

.upload-label strong {
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
}

.upload-label span {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    word-break: break-word;
}

.upload-label small {
    color: #667085;
}

.uploading-message {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
}

.top-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.logout-link {
    flex: 0 0 auto;
    margin-top: 8px;
    color: #2f66e0;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}


.settings-box {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #e5e7eb;
}

.settings-box h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
}

.secondary-button {
    background: #475467;
}

.secondary-button:hover {
    background: #344054;
}

@media (max-width: 640px) {
    body {
        padding: 14px;
    }

    .page-wrap,
    .page-wrap-wide {
        max-width: 100%;
        min-height: 70vh;
        margin: 0 auto;
        padding: 24px 22px;
        border-radius: 16px;
    }

    h1 {
        font-size: 31px;
    }

    label {
        font-size: 20px;
    }

    input[type="text"],
    input[type="password"],
    input[type="number"] {
        height: 58px;
        font-size: 19px;
    }

    button {
        font-size: 19px;
    }

    .top-line {
        display: block;
    }

    .logout-link {
        display: inline-block;
        margin: 0 0 22px;
    }
}

.password-wrap {
    position: relative;
    margin-bottom: 24px;
}

.password-wrap input {
    margin-bottom: 0;
    padding-right: 58px;
}

.password-wrap .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1d2433;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.password-wrap .toggle-password:hover {
    background: #eef3ff;
}

.password-wrap .toggle-password span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-wrap .toggle-password svg {
    width: 22px;
    height: 22px;
    opacity: 0.72;
}

.admin-settings-link-wrap {
    margin-top: 24px;
    text-align: center;
}

.admin-settings-link {
    display: inline-block;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.admin-settings-link:hover {
    color: #2f66e0;
    text-decoration: underline;
}

.credentials-note {
    margin-top: 20px;
    line-height: 1.45;
}
.contact-short {
    text-align: center;
    margin: 10px 0 25px;
    font-weight: 600;
}

.contact-short a {
    text-decoration: none;
}

.quote-helper-link {
    margin-bottom: 20px;
    text-align: center;
}

.quote-helper-link a {
    font-weight: 600;
    text-decoration: none;
}

.quote-helper-link a:hover {
    text-decoration: underline;
}