/*======================================================*
- PARENT AUTH
- Version 2.0
- Ostad Abjad
======================================================*/

.oab-parent-page {
    width: 100%;
    height: 100%;
    display: none;
    box-sizing: border-box;
    padding: 6px 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

body.oab-parent-active .oab-parent-page {
    display: block !important;
}


/*======================================================*
- CARD
======================================================*/

.oab-parent-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 12px 18px;
    box-sizing: border-box;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}


/*======================================================*
- ALL TEXT
======================================================*/

#oab-parent-page .oab-parent-title,
#oab-parent-page .oab-parent-subtitle,
#oab-parent-page .oab-parent-message,
#oab-parent-page .oab-parent-field label,
#oab-parent-page .oab-parent-field input,
#oab-parent-page .oab-parent-field input::placeholder,
#oab-parent-page .oab-parent-notice strong,
#oab-parent-page .oab-parent-notice p,
#oab-parent-page .oab-parent-primary-button,
#oab-parent-page .oab-parent-link-button {
    font-size: 16px !important;
}


/*======================================================*
- HEADER
======================================================*/

.oab-parent-header {
    text-align: center;
    margin-bottom: 6px;
}

.oab-parent-icon {
    font-size: 25px;
    line-height: 1;
    margin-bottom: 2px;
}

.oab-parent-title {
    margin: 0;
    color: #178a3d;
    font-weight: 700;
    line-height: 1.25;
    font-size: 16px !important;
}

.oab-parent-subtitle {
    margin: 2px 0 0;
    color: #5f6b63;
    line-height: 1.3;
}


/*======================================================*
- MESSAGE
======================================================*/

.oab-parent-message {
    min-height: 0;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

.oab-parent-message:empty {
    margin-bottom: 0;
}

.oab-parent-message.is-error {
    color: #b42318;
}

.oab-parent-message.is-success {
    color: #178a3d;
}


/*======================================================*
- FORM
======================================================*/

.oab-parent-form-box {
    width: 100%;
}

.oab-parent-field {
    margin-bottom: 6px;
}

.oab-parent-field label {
    display: block;
    margin-bottom: 2px;
    color: #1f2d24;
    font-weight: 700;
    line-height: 1.25;
}


/*======================================================*
- INPUT
======================================================*/

.oab-parent-field input {
    width: 100%;
    height: 42px;
    border: 1px solid #d6ddd8;
    border-radius: 13px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #ffffff;
    color: #1f2d24;
    font-family: inherit;
    outline: none;
}

.oab-parent-field input:focus {
    border-color: #178a3d;
    box-shadow: 0 0 0 3px rgba(23, 138, 61, 0.10);
}


/*======================================================*
- NOTICE
======================================================*/

.oab-parent-notice {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f5fbf6;
    border: 1px solid #dceee0;
}

.oab-parent-notice strong {
    display: block;
    margin-bottom: 1px;
    color: #178a3d;
    font-weight: 700;
    line-height: 1.25;
}

.oab-parent-notice p {
    margin: 1px 0 0;
    color: #4f5d53;
    line-height: 1.3;
}


/*======================================================*
- BUTTONS
======================================================*/

.oab-parent-primary-button,
.oab-parent-link-button {
    width: 100%;
    min-height: 40px;
    border-radius: 13px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.25;
}

.oab-parent-primary-button {
    border: 0;
    background: #178a3d;
    color: #ffffff;
    margin-top: 1px;
}

.oab-parent-primary-button:hover {
    filter: brightness(0.96);
}

.oab-parent-primary-button:disabled {
    opacity: 0.65;
    cursor: default;
}

.oab-parent-link-button {
    margin-top: 4px;
    border: 1px solid #d6ddd8;
    background: #ffffff;
    color: #178a3d;
}

.oab-parent-link-button:hover {
    background: #f7faf8;
}


/*======================================================*
- POPUP
======================================================*/

.oab-parent-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999999;
}

.oab-parent-popup.is-visible {
    display: flex;
}

.oab-parent-popup-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    padding: 24px 20px 18px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.oab-parent-popup-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.oab-parent-popup.is-success .oab-parent-popup-icon {
    background: #eaf8ee;
    color: #178a3d;
}

.oab-parent-popup.is-error .oab-parent-popup-icon {
    background: #fff0ee;
    color: #b42318;
}

.oab-parent-popup-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #26352c;
}

.oab-parent-popup-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #5f6b63;
}


/*======================================================*
- POPUP ACTIONS
======================================================*/

.oab-parent-popup-actions {
    width: 100%;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oab-parent-popup-button,
.oab-parent-popup-secondary-button {
    width: 100%;
    min-height: 42px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
}

.oab-parent-popup-button {
    margin: 0;
    border: 0;
    background: #178a3d;
    color: #ffffff;
}

.oab-parent-popup-button:hover {
    filter: brightness(0.96);
}

.oab-parent-popup-secondary-button {
    margin: 0;
    border: 1px solid #178a3d;
    background: #ffffff;
    color: #178a3d;
}

.oab-parent-popup-secondary-button:hover {
    background: #f5fbf6;
}


/*======================================================*
- LAPTOP
======================================================*/

@media (min-width: 701px) and (max-height: 800px) {

    .oab-parent-page {
        padding: 4px 10px;
    }

    .oab-parent-card {
        max-width: 700px;
        padding: 9px 16px;
        border-radius: 20px;
    }

    .oab-parent-header {
        margin-bottom: 4px;
    }

    .oab-parent-icon {
        font-size: 23px;
        margin-bottom: 1px;
    }

    .oab-parent-field {
        margin-bottom: 5px;
    }

    .oab-parent-field input {
        height: 39px;
    }

    .oab-parent-notice {
        margin: 5px 0;
        padding: 5px 9px;
    }

    .oab-parent-primary-button,
    .oab-parent-link-button {
        min-height: 38px;
    }
}


/*======================================================*
- MOBILE
======================================================*/

@media (max-width: 700px) {

    .oab-parent-page {
        padding: 5px;
    }

    .oab-parent-card {
        max-width: 100%;
        padding: 9px 10px;
        border-radius: 18px;
    }

    .oab-parent-header {
        margin-bottom: 5px;
    }

    .oab-parent-icon {
        font-size: 24px;
        margin-bottom: 1px;
    }

    .oab-parent-field {
        margin-bottom: 5px;
    }

    .oab-parent-field input {
        height: 40px;
        padding: 0 10px;
    }

    .oab-parent-notice {
        margin: 5px 0;
        padding: 5px 8px;
    }

    .oab-parent-primary-button,
    .oab-parent-link-button {
        min-height: 39px;
    }

    .oab-parent-popup-card {
        max-width: 360px;
        padding: 20px 16px 16px;
        border-radius: 18px;
    }

    .oab-parent-popup-actions {
        gap: 7px;
    }

    .oab-parent-popup-button,
    .oab-parent-popup-secondary-button {
        min-height: 41px;
        font-size: 15px;
    }
}


/*======================================================*
- FINAL TWEAKS
======================================================*/

#oab-parent-page .oab-parent-notice p {
    text-align: justify !important;
    text-align-last: right;
}

#oab-parent-page .oab-parent-field label {
    font-size: 14px !important;
}