/* =========================================================
   PROCITEC – PŘIHLÁŠENÍ A ODHLÁŠENÍ
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #eef2f5;
    color: #263d50;
}

.auth-card {
    width: 100%;
    max-width: 390px;
    padding: 36px;
    border: 1px solid #d7dde2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    text-align: center;
}

.auth-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 70px;
    margin: 0 auto 22px;
}

.auth-card h1 {
    margin: 0;
    color: #263d50;
    font-size: 25px;
}

.auth-description {
    margin: 9px 0 23px;
    color: #68737d;
    line-height: 1.45;
}

.auth-message {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 5px;
    line-height: 1.4;
    text-align: left;
}

.auth-message-error {
    border-color: #dfa1a1;
    background: #fceaea;
    color: #922828;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    text-align: left;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    color: #4c5a65;
    font-size: 13px;
    font-weight: bold;
}

.auth-field input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #bcc5cc;
    border-radius: 5px;
    background: #ffffff;
    color: #263d50;
    font-family: inherit;
    font-size: 15px;
}

.auth-field input:focus {
    border-color: #3979b7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(57, 121, 183, .15);
}

.auth-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 0;
    border-radius: 5px;
    background: #3979b7;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.auth-form .auth-button {
    width: 240px;
    max-width: 100%;
    margin: 12px auto 0;
}

.auth-button:hover,
.auth-button:focus {
    background: #2e6598;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(34, 91, 139, .22);
    text-decoration: none;
    transform: translateY(-1px);
}

.auth-button-danger {
    background: #b43737;
}

.auth-button-danger:hover,
.auth-button-danger:focus {
    background: #922b2b;
}

.auth-button-link {
    width: 100%;
    margin-top: 3px;
}

.auth-secondary-link {
    display: inline-block;
    margin-top: 18px;
    color: #3979b7;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.auth-secondary-link:hover,
.auth-secondary-link:focus {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 14px;
    }

    .auth-card {
        padding: 28px 21px;
    }

    .auth-form .auth-button {
        width: 100%;
    }
}

/* =========================================================
   AUTH – kompaktnější vzhled
   ========================================================= */

.auth-card {
    width: 100%;
    max-width: 350px;
    padding: 28px;
}

.auth-logo {
    display: block;
    width: auto;
    max-width: 135px;
    max-height: 60px;
    margin: 0 auto 16px;
}

.auth-card h1 {
    margin: 0;
    font-size: 22px;
}

.auth-description {
    margin: 8px 0 18px;
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-field label {
    margin-bottom: 4px;
    font-size: 13px;
}

.auth-field input {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 14px;
}

.auth-form .auth-button {
    width: 220px;
    max-width: 100%;
    min-height: 40px;
    margin: 8px auto 0;
    font-size: 14px;
}

@media (max-width: 480px) {

    .auth-card {
        max-width: 100%;
        padding: 22px;
    }

    .auth-form .auth-button {
        width: 100%;
    }

}


/* =========================================================
   AUTH – FINÁLNÍ KOMPAKTNÍ ROZLOŽENÍ
   ========================================================= */

.auth-card-login {
    width: min(100%, 640px);
    max-width: 640px;
    padding: 34px 40px 36px;
    border-radius: 11px;
}

.auth-header {
    grid-template-columns:
        minmax(220px, 285px)
        minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 26px;
}

.auth-logo-frame {
    min-height: 92px;
}

.auth-logo-frame .auth-logo {
    max-height: 92px;
}

.auth-header-content h1 {
    margin-bottom: 7px;
    font-size: 24px;
    line-height: 1.2;
}

.auth-header-content .auth-description {
    font-size: 14px;
    line-height: 1.4;
}

.auth-form {
    width: min(100%, 520px);
    margin-right: auto;
    margin-left: auto;
    gap: 13px;
}

.auth-field label {
    margin-bottom: 5px;
    font-size: 13px;
}

.auth-field input {
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 5px;
    font-size: 14px;
}

.auth-form .auth-button {
    width: 190px;
    min-height: 40px;
    margin: 7px auto 0;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 14px;
}

.auth-message {
    width: min(100%, 520px);
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 680px) {
    .auth-card-login {
        width: min(100%, 430px);
        max-width: 430px;
        padding: 29px 24px;
    }

    .auth-header {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
        text-align: center;
    }

    .auth-logo-frame {
        width: min(100%, 300px);
        min-height: 82px;
    }

    .auth-logo-frame .auth-logo {
        max-height: 82px;
    }

    .auth-form {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .auth-card-login {
        padding: 24px 18px;
    }

    .auth-form .auth-button {
        width: 100%;
    }
}



/* =========================================================
   prociTec – přepínač viditelnosti hesla
   ========================================================= */

.auth-password-control {
    position: relative;
    display: block;
    width: 100%;
}

.auth-password-control input {
    width: 100%;
    padding-right: 54px !important;
}

.auth-password-toggle {
    position: absolute;
    z-index: 5;

    top: 50%;
    right: 10px;

    display: inline-flex;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;

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

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #667b89;

    box-shadow: none;
    cursor: pointer;

    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    background: #eef3f7;
    color: #2f6fa8;
}

.auth-password-toggle:focus-visible {
    background: #eef3f7;
    color: #2f6fa8;

    outline: 2px solid #3f82c3;
    outline-offset: 1px;
}

.auth-password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;

    fill: currentColor;
    pointer-events: none;
}
