/* ==========================================================================
   PMMY Portal login / signup modal
   Palette matches the site: maroon #b1322c / #bb2c30, gold #fbc805 / #ffd102
   ========================================================================== */

.pmmy-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 12, 12, 0.68);
    z-index: 99999;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pmmy-auth-overlay.is-open {
    display: block;
}

.pmmy-auth-dialog {
    background: #fff;
    width: 100%;
    max-width: 430px;
    margin: 40px auto;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}

/* ---------- header ---------- */

.pmmy-auth-head {
    background: #b1322c;
    color: #fff;
    padding: 16px 20px 14px;
    position: relative;
}

.pmmy-auth-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

.pmmy-auth-head p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #f6d9d7;
}

.pmmy-auth-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 2px 7px;
    cursor: pointer;
    border-radius: 3px;
    opacity: .85;
}

.pmmy-auth-close:hover,
.pmmy-auth-close:focus {
    background: rgba(0, 0, 0, .18);
    opacity: 1;
    outline: none;
}

/* ---------- tabs ---------- */

.pmmy-auth-tabs {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #f5f5f5;
    border-bottom: 1px solid #dcdcdc;
}

.pmmy-auth-tab {
    display: table-cell;
    text-align: center;
    padding: 13px 8px;
    font-size: 14px;
    font-weight: bold;
    color: #6b6b6b;
    background: #f5f5f5;
    border: 0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    width: 50%;
    letter-spacing: .3px;
}

.pmmy-auth-tab:hover {
    color: #b1322c;
}

.pmmy-auth-tab.is-active {
    background: #fff;
    color: #b1322c;
    border-bottom-color: #fbc805;
}

.pmmy-auth-tab:focus {
    outline: 2px solid #ffd102;
    outline-offset: -2px;
}

/* ---------- registration confirmation ---------- */

/* Registration confirmation shown above the login form once an account has
   been created. */
.pmmy-auth-created {
    display: none;
    background: #f3faf4;
    border-bottom: 1px solid #cfe8d4;
    padding: 14px 20px;
    text-align: center;
}

.pmmy-auth-created.is-shown {
    display: block;
}

.pmmy-auth-created .tick {
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 18px;
    margin: 0 auto 8px;
}

.pmmy-auth-created h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #24632a;
    font-weight: bold;
}

.pmmy-auth-created p {
    margin: 0;
    font-size: 12px;
    color: #55705a;
    line-height: 1.5;
}

.pmmy-auth-created .cid {
    display: inline-block;
    margin-top: 7px;
    background: #fff;
    border: 1px dashed #9ac6a2;
    border-radius: 3px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #24632a;
}

/* ---------- form body ---------- */

.pmmy-auth-body {
    padding: 18px 20px 22px;
}

.pmmy-auth-pane {
    display: none;
}

.pmmy-auth-pane.is-active {
    display: block;
}

.pmmy-field {
    margin-bottom: 13px;
}

.pmmy-field label {
    display: block;
    font-size: 12.5px;
    font-weight: bold;
    color: #444;
    margin-bottom: 4px;
}

.pmmy-field label .req {
    color: #b1322c;
}

.pmmy-field input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 6px 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.pmmy-field input:focus {
    border-color: #b1322c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(177, 50, 44, .12);
}

.pmmy-field input.has-error {
    border-color: #c9302c;
    background: #fff7f7;
}

.pmmy-field .pmmy-err {
    display: none;
    font-size: 11.5px;
    color: #c9302c;
    margin-top: 4px;
}

.pmmy-field .pmmy-err.is-shown {
    display: block;
}

/* ---------- captcha ---------- */

.pmmy-captcha-row {
    display: table;
    width: 100%;
    margin-bottom: 6px;
}

.pmmy-captcha-img,
.pmmy-captcha-actions,
.pmmy-captcha-input {
    display: table-cell;
    vertical-align: middle;
}

.pmmy-captcha-img {
    width: 150px;
}

.pmmy-captcha-img canvas {
    display: block;
    width: 150px;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
}

.pmmy-captcha-actions {
    width: 38px;
    text-align: center;
}

.pmmy-captcha-refresh {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 30px;
    height: 30px;
    line-height: 1;
    cursor: pointer;
    color: #b1322c;
    font-size: 14px;
}

.pmmy-captcha-refresh:hover {
    background: #ffd102;
    border-color: #e0b800;
    color: #7a2420;
}

.pmmy-captcha-refresh:focus {
    outline: 2px solid #ffd102;
    outline-offset: 1px;
}

.pmmy-captcha-input input {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pmmy-captcha-hint {
    font-size: 11px;
    color: #777;
    margin: 0 0 4px;
}

/* ---------- submit ---------- */

.pmmy-auth-submit {
    display: block;
    width: 100%;
    padding: 11px 12px;
    margin-top: 4px;
    font-size: 14.5px;
    font-weight: bold;
    letter-spacing: .4px;
    color: #fff;
    background: #b1322c;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.pmmy-auth-submit:hover {
    background: #97231e;
}

.pmmy-auth-submit:focus {
    outline: 2px solid #ffd102;
    outline-offset: 2px;
}

.pmmy-auth-alt {
    text-align: center;
    font-size: 12.5px;
    color: #666;
    margin: 14px 0 0;
}

.pmmy-auth-alt button {
    background: none;
    border: 0;
    padding: 0;
    color: #b1322c;
    font-weight: bold;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------- form-level messages ---------- */

.pmmy-auth-msg {
    display: none;
    padding: 9px 12px;
    border-radius: 3px;
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.pmmy-auth-msg.is-shown {
    display: block;
}

.pmmy-auth-msg.is-error {
    background: #fdecea;
    border: 1px solid #f2c2bd;
    color: #a3251f;
}

.pmmy-auth-msg.is-success {
    background: #eaf7ec;
    border: 1px solid #bfe2c5;
    color: #1f6b2c;
}

/* ---------- responsive ---------- */

@media (max-width: 520px) {
    .pmmy-auth-dialog {
        max-width: 94%;
        margin: 20px auto;
    }

    .pmmy-captcha-img,
    .pmmy-captcha-actions,
    .pmmy-captcha-input {
        display: block;
        width: 100%;
    }

    .pmmy-captcha-actions {
        text-align: left;
        margin: 8px 0;
    }

    .pmmy-captcha-img canvas {
        width: 100%;
        max-width: 200px;
    }
}
