/**
 * assets/css/eafs-int-signup.css
 *
 * EAFS Sign Up Integration
 *
 * @package EAFSAccountIntegration
 */


/* =========================================================
   SIGN UP PAGE
   ========================================================= */

/* EAFS 注册框宽度 */
#eafs-register-container {
    max-width:420px;
    margin:50px auto;
    padding:40px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/**
 * The WordPress Page content containing:
 *
 * [register]
 *
 * <div class="eafs-page-login">...</div>
 *
 * gets some bottom breathing room.
 *
 * This prevents the register page from touching the
 * bottom edge of the viewport.
 */
.entry-content:has(#eafs-register-container) {
    padding-bottom: 50px;
}


/* =========================================================
   LOGIN IN SIGN UP PAGE
   ========================================================= */

/**
 * Login area.
 *
 * IMPORTANT:
 *
 * The Login block is NOT inside #eafs-register-container.
 *
 * It is a sibling of #eafs-register-container:
 *
 * .entry-content
 *     ├── #eafs-register-container
 *     └── .eafs-page-login
 *
 * Therefore we center it independently.
 */
.eafs-page-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/**
 * Text.
 */
.eafs-page-login > span {
    display: inline;
    margin: 0;
    padding: 0;
    color: #666;
    text-align: center;
}

/**
 * Sign in link.
 */
.eafs-page-login-link {
    display: inline;
    margin-left: 5px;
    padding: 0;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

/**
 * Hover.
 */
.eafs-page-login-link:hover {
    color: #000;
    text-decoration: underline;
}

/**
 * Keyboard focus.
 */
.eafs-page-login-link:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

/**
 * Remove possible theme margins.
 */
.eafs-page-login p {
    margin: 0;
    padding: 0;
}


/* =========================================================
   KEEP LOGIN CLOSE TO EAFS SIGN UP
   ========================================================= */

/**
 * The Register container itself may have a bottom margin
 * coming from EAFS or the theme.
 *
 * Remove that margin so the Login block can sit close
 * underneath the Register form.
 */
#eafs-register-container {
    margin-bottom: 0 !important;
}

/**
 * Some themes may add margin to the EAFS container.
 *
 * The Login block itself should start only a small
 * distance below the Register component.
 */
#eafs-register-container + .eafs-page-login {
    margin-top: 10px;
}
