/*
Theme Name: Alliance Child
Template: alliance
Theme URI: https://alliance.themerex.net/
Description: Alliance is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* =Theme customization starts here
-------------------------------------------------------------- */

/* Custom styling for login and lost password page */
body.login, body.login-action-lostpassword {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}

/* Button and input border-radius */
body.login #loginform .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="submit"],
body.login-action-lostpassword #loginform .input,
body.login-action-lostpassword #loginform input[type="text"],
body.login-action-lostpassword #wp-submit {
    border-radius: 3px !important;
    font-size: 16px !important;
}

/* Button background */
body.login #wp-submit,
body.login-action-lostpassword #wp-submit {
    background-color: #285f74 !important;
    color: white !important;
    font-size: 12px !important;
    border-radius: 3px !important;
}

/* Links hover effect */
body.login a:hover, body.login-action-lostpassword a:hover {
    color: #285f74 !important;
}

/* Apply heading color */
body.login h1, body.login-action-lostpassword h1 {
    color: #285f74 !important;
}

/* Lost password notice styles */
body.login-action-lostpassword .notice {
    background-color: #f0f8ff !important;
    color: #285f74 !important;
    padding: 10px !important;
    border: 1px solid #285f74 !important;
    border-radius: 5px !important;
}

/* Styling for lost password page links */
body.login-action-lostpassword a {
    color: #285f74 !important;
}

/* Styling for the 'Go to OneJA' link */
body.login-action-lostpassword #backtoblog a {
    color: #285f74 !important;
}

body.login-action-lostpassword #backtoblog a:hover {
    color: #123e51 !important;
}

/* Styling for the logo on login and lost password pages */
body.login .loginlogo img,
body.login-action-lostpassword .loginlogo img {
    padding: 2.5px 15px;
}

/* Make the login logo smaller on mobile */
@media (max-width: 480px) {
    body.login .loginlogo img,
    body.login-action-lostpassword .loginlogo img {
        width: 120px !important;
        height: auto !important; /* Maintain aspect ratio */
        max-width: 100%; /* Ensure it never exceeds container */
    }
}


/* Adjusted styling for 'Log in' link */
body.login-action-lostpassword #nav a {
    color: #285f74 !important;
}

body.login-action-lostpassword #nav a:hover {
    color: #123e51 !important;
}

/* fixing the Tinymce Editor interface */
form button:not(.components-button) { background-color:transparent !important}
#tinymce.mce-content-body { font-family: 'Montserrat', sans-serif !important; }

/*fixing logo height*/
body .sc_layouts_logo img {
    max-height: 100%;
    width: 200px !important;
}

body .menu_mobile .menu_mobile_top_panel {
	padding-left: 28px !important;
    padding-top: 4px !important;
    padding-right: 0px !important;
    padding-bottom: 4px!important;
}

/* JA ID Login Button Styling */
.ja-id-login-button {
    display: flex !important;
    width: 100%;
    max-width: 320px;
    padding: 12px 24px;
    background-color: #285f74;
    color: white !important;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    margin: 0 auto 20px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.ja-id-login-button img {
    height: 24px;
    margin-right: 10px;
}

.ja-id-login-button:hover {
    background-color: #123e51;
    color: white !important;
    text-decoration: none;
}

/* JA ID Register Button Styling */
.ja-id-register-button {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 12px 24px;
    background-color: white;
    color: #285f74 !important;
    text-align: center;
    text-decoration: none;
    border: 1px solid #285f74;
    border-radius: 3px;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ja-id-register-button:hover {
    background-color: #f0f8ff;
    color: #123e51 !important;
    text-decoration: none;
}

/* JA ID Register Popup Styling */
.ja-id-register-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ja-id-register-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 0 auto;
    box-sizing: border-box;
}

.ja-id-register-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #285f74;
    transition: color 0.3s ease;
}

.ja-id-register-popup-close:hover {
    color: #123e51;
}

.ja-id-register-iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hide default login form elements */
body.login #loginform p,
body.login #loginform .user-pass-wrap,
body.login #loginform .forgetmenot,
body.login #loginform .submit {
    display: none !important;
}

/* Style the login form container */
body.login #loginform {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
}

.openid-connect-login-button{
    display: none;
}

.wp-login-lost-password{
    display: none;
}

/* Responsive adjustments for mobile */
@media (max-width: 480px) {
    .ja-id-login-button,
    .ja-id-register-button {
        max-width: 100%;
        padding: 10px 16px;
    }

    .ja-id-register-popup-content {
        width: 95%;
        padding: 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .ja-id-register-iframe {
        height: 400px;
        width: 100%;
        display: block;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

body.login #loginform {
	align-items: unset !important;
}

#ja-id-login-container{
	margin-top: 20px !important;
}

.ja-id-login-button, .ja-id-register-button{
	    width: unset !important;
}

.notice notice-info message{
	border-color: #00a0af !important;
}


