/*
 * JEIERT Role Login
 * Compact Layout
 */

/* ================================
   MAIN CONTAINER
================================ */

.jeiert-auth-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 20px 25px;
    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
    color: #071d3b;
}


/* ================================
   ROLE BUTTON GRID
================================ */

.jeiert-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 30px;
    row-gap: 25px;

    width: 100%;
    margin: 0 0 30px;
}


/* ================================
   ROLE BUTTONS
================================ */

.jeiert-role-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 100%;
    min-height: 58px;

    padding: 10px 18px;

    border: 1px solid #ccd8e4;
    border-radius: 10px;

    background: #edf4f8;
    color: #071d3b;

    font-family: inherit;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.jeiert-role-button:hover {
    border-color: #008f83;
    background: #e8f7f5;
    color: #008f83;
}

.jeiert-role-button.active {
    border-color: #008f83;
    background: #e4f8f5;
    color: #008f83;

    box-shadow: 0 0 0 2px rgba(0, 143, 131, 0.06);
}


/* ================================
   LOCK ICON
================================ */

.jeiert-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    line-height: 1;
}


/* ================================
   LOGIN AS
================================ */

.jeiert-login-as {
    margin: 0 0 18px;

    color: #7182a0;

    font-size: 17px;
    line-height: 1.4;

    text-align: center;
}

.jeiert-login-as strong {
    color: #008f83;
    font-weight: 700;
}


/* ================================
   LOGIN / REGISTER TABS
================================ */

.jeiert-auth-switch {
    display: flex;

    width: 100%;
    max-width: 500px;

    margin: 0 auto 22px;

    border-bottom: 1px solid #d7e0e9;
}

.jeiert-mode-btn {
    flex: 1;

    border: 0;
    border-bottom: 3px solid transparent;

    padding: 9px 12px;

    background: transparent;
    color: #6d7c95;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.jeiert-mode-btn:hover {
    color: #008f83;
}

.jeiert-mode-btn.active {
    border-bottom-color: #008f83;
    color: #008f83;
}


/* ================================
   FORMS
================================ */

.jeiert-auth-form {
    display: none;

    width: 100%;
    max-width: 500px;

    margin: 0 auto;
    padding: 0;
}

.jeiert-auth-form.active {
    display: block;
}


/* ================================
   REGISTER HEADING
================================ */

.jeiert-register-heading {
    width: 100%;

    margin: 0 0 18px;

    color: #7182a0;

    font-size: 16px;
    line-height: 1.4;
}

.jeiert-register-heading strong {
    color: #008f83;
}


/* ================================
   FORM FIELDS
================================ */

.jeiert-field {
    width: 100%;
    margin: 0 0 18px;
}

.jeiert-field label {
    display: block;

    margin: 0 0 7px;

    color: #071d3b;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.jeiert-field input[type="text"],
.jeiert-field input[type="email"],
.jeiert-field input[type="password"] {
    display: block;

    width: 100%;
    height: 48px;

    box-sizing: border-box;

    margin: 0;

    border: 1px solid #c6d4e4;
    border-radius: 8px;

    padding: 9px 14px;

    outline: none;

    background: #eaf2ff;
    color: #000;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.3;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.jeiert-field input:focus {
    border-color: #008f83;
    background: #f4f9ff;

    box-shadow: 0 0 0 2px rgba(0, 143, 131, 0.10);
}


/* ================================
   PASSWORD FIELD
================================ */

.jeiert-password-wrap {
    position: relative;
    width: 100%;
}

.jeiert-password-wrap input {
    padding-right: 65px !important;
}

.jeiert-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: 0;
    padding: 5px;

    background: transparent;
    color: #008f83;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.jeiert-password-toggle:hover {
    color: #006d65;
}


/* ================================
   REMEMBER ME
================================ */

.jeiert-remember {
    display: flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    margin: 0 0 18px;

    color: #50617f;

    font-size: 14px;
    line-height: 1.3;

    cursor: pointer;
}

.jeiert-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;

    margin: 0;

    accent-color: #008f83;
}


/* ================================
   LOGIN / REGISTER BUTTON
================================ */

.jeiert-submit-button {
    display: block;

    width: 100%;
    min-height: 48px;

    border: 0;
    border-radius: 8px;

    padding: 10px 18px;

    background: #078f83;
    color: #fff;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.jeiert-submit-button:hover {
    background: #007b71;
    color: #fff;

    box-shadow: 0 4px 12px rgba(0, 143, 131, 0.18);
}

.jeiert-submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* ================================
   REGISTRATION INFORMATION
================================ */

.jeiert-registration-note {
    width: 100%;

    box-sizing: border-box;

    margin: 0 0 18px;

    border-left: 3px solid #008f83;
    border-radius: 4px;

    padding: 10px 12px;

    background: #f1faf8;
    color: #51627d;

    font-size: 13px;
    line-height: 1.5;
}


/* ================================
   MESSAGES
================================ */

.jeiert-message {
    width: 100%;
    box-sizing: border-box;

    margin: 0 0 20px;

    border: 1px solid transparent;
    border-radius: 7px;

    padding: 11px 14px;

    font-size: 14px;
    line-height: 1.5;
}

.jeiert-message-success {
    border-color: #9bd8bf;
    background: #e8f8ef;
    color: #17663d;
}

.jeiert-message-error {
    border-color: #e5aaa6;
    background: #fff0ef;
    color: #a3241d;
}

.jeiert-message-info {
    border-color: #a9cbe5;
    background: #edf7ff;
    color: #245b82;
}


/* ================================
   JAVASCRIPT ERROR
================================ */

.jeiert-client-error {
    width: 100%;
    box-sizing: border-box;

    margin: 0 0 15px;

    border: 1px solid #e5aaa6;
    border-radius: 7px;

    padding: 10px 12px;

    background: #fff0ef;
    color: #a3241d;

    font-size: 13px;
    line-height: 1.5;
}


/* ================================
   TABLET
================================ */

@media screen and (max-width: 768px) {

    .jeiert-auth-wrapper {
        max-width: 650px;
        padding: 10px 15px 20px;
    }

    .jeiert-role-grid {
        column-gap: 20px;
        row-gap: 18px;

        margin-bottom: 25px;
    }

    .jeiert-role-button {
        min-height: 55px;

        padding: 9px 12px;

        font-size: 16px;
    }
}


/* ================================
   MOBILE
================================ */

@media screen and (max-width: 600px) {

    .jeiert-auth-wrapper {
        width: 100%;
        padding: 5px 10px 15px;
    }

    .jeiert-role-grid {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-bottom: 22px;
    }

    .jeiert-role-button {
        min-height: 50px;

        padding: 8px 12px;

        font-size: 15px;
    }

    .jeiert-login-as {
        margin-bottom: 15px;

        font-size: 15px;
    }

    .jeiert-auth-switch {
        margin-bottom: 18px;
    }

    .jeiert-mode-btn {
        padding: 8px;

        font-size: 14px;
    }

    .jeiert-field {
        margin-bottom: 15px;
    }

    .jeiert-field label {
        margin-bottom: 6px;

        font-size: 14px;
    }

    .jeiert-field input[type="text"],
    .jeiert-field input[type="email"],
    .jeiert-field input[type="password"] {
        height: 45px;

        padding: 8px 12px;

        font-size: 14px;
    }

    .jeiert-submit-button {
        min-height: 45px;

        font-size: 14px;
    }
}