/* custom-login.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* General styles for the login page */
body.login {
    background: url('sso-bg.webp') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    font-family: 'Tajawal', sans-serif;
    margin-top: 30px;
}

body.login:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(80, 0, 134, 0.85), rgba(212, 8, 140, 0.75));
    opacity: 0.9 !important;
    z-index: 1;
}

/* Main wrapper for two-column layout */
.custom-login-main-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 50px auto;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Column styles */
.custom-login-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-login-form-column {
    max-width: 500px;
}

.custom-login-footer-column {
    max-width: 500px;
}

body.login #login {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px;
    border-radius: 32px;
    text-align: center;
    background: rgb(255, 255, 255);
    box-shadow: 0 10px 40px rgba(80, 0, 134, 0.3);
}

body.login h1 {
    margin-bottom: 30px;
}

body.login h1 a {
    width: 200px !important;
    height: 70px !important;
    object-fit: contain;

}

body.login h2 {
    text-align: center;
    color: #500086;
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

body.login form#loginform {
    margin-top: 20px;
    text-align: right;
    border-radius: 15px !important;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

body.login form#loginform p {
    margin-bottom: 15px;
}

body.login form#loginform input[type="text"], 
body.login form#loginform input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px !important;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

body.login form#loginform input[type="text"]:focus, 
body.login form#loginform input[type="password"]:focus {
    border-color: #500086;
    outline: none;
    box-shadow: 0 0 0 3px rgba(80, 0, 134, 0.1);
}

body.login form#loginform input[type="submit"] {
    width: 100%;
    background: #500086;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px !important;
}

input#wp-submit:hover {
    background: #D4088C !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 8, 140, 0.4);
    transition: all 0.3s ease;
    border-radius: 10px !important;
}

.login label {
    font-size: 14px;
    line-height: 1.6;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500 !important;
    color: #500086 !important;
    font-family: 'Tajawal', sans-serif;
}

a.wp-login-log-in {
    color: #500086 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover.wp-login-log-in {
    color: #D4088C !important;
}

a.wp-login-register {
    color: #500086 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover.wp-login-register {
    color: #D4088C !important;
}

a.wp-login-lost-password {
    color: #500086 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover.wp-login-lost-password {
    color: #D4088C !important;
}

.login #backtoblog a {
    color: #500086 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login #backtoblog a:hover {
    color: #D4088C !important;
}

.wp-core-ui .button-primary {
    background: #500086 !important;
    border-color: #500086 !important;
    color: #fff;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.wp-core-ui .button-primary:hover {
    background: #D4088C !important;
    border-color: #D4088C !important;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 8, 140, 0.4);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.language-switcher {
    display: none !important;
}

a.privacy-policy-link {
    color: #500086;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.privacy-policy-link:hover {
    color: #D4088C;
}

.login .button.wp-hide-pw {
    left: 0px !important;
    top: 1px !important;
    color: #500086;
}

.login .button.wp-hide-pw:hover {
    color: #D4088C;
}

input {
    font-size: 14px !important;
    font-family: 'Tajawal', sans-serif !important;
}

.rc-anchor-light.rc-anchor-normal, .rc-anchor-light.rc-anchor-compact {
    border-radius: 10px;
}

/* Custom Login Footer Styles */
.custom-login-footer {
    position: static;
    width: 100%;
    padding: 40px;
    text-align: center;
    z-index: 2;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.custom-login-text {
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.8;
}

.custom-login-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.custom-logo-1,
.custom-logo-2 {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-logo-1:hover,
.custom-logo-2:hover {
    transform: scale(1.05);
}

/* Adjust body padding */
body.login {
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* General FadeIn Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FadeIn for wp-login-logo */
.wp-login-logo {
    animation: fadeIn 0.7s ease-in-out;
}

/* FadeIn for form#loginform */
form#loginform {
    animation: fadeIn 0.7s ease-in-out;
}

/* FadeIn for nav */
nav {
    animation: fadeIn 0.7s ease-in-out;
}

/* FadeIn for backtoblog */
.backtoblog {
    animation: fadeIn 0.7s ease-in-out;
}

/* FadeIn for privacy-policy-page-link */
.privacy-policy-page-link {
    animation: fadeIn 0.7s ease-in-out;
}

/* FadeIn for custom footer */
.custom-login-footer {
    animation: fadeIn 0.8s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 1320px) {
    .custom-login-main-wrapper {
        max-width: 95%;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .custom-login-main-wrapper {
        flex-direction: column;
        max-width: 90%;
        gap: 30px;
    }
    
    .custom-login-form-column,
    .custom-login-footer-column {
        max-width: 100%;
        width: 100%;
    }
    
    body.login #login {
        max-width: 100%;
        padding: 30px 25px;
    }
    
    .custom-login-footer {
        padding: 30px 25px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .custom-login-main-wrapper {
        margin: 30px auto;
        padding: 0 15px;
        gap: 20px;
    }
    
    body.login #login {
        padding: 25px 20px;
    }
    
    .custom-login-footer {
        padding: 25px 20px;
    }
    
    .custom-login-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .custom-login-logos {
        gap: 20px;
    }
    
    .custom-logo-1,
    .custom-logo-2 {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .custom-login-main-wrapper {
        margin: 20px auto;
        gap: 15px;
    }
    
    body.login #login {
        padding: 20px 15px;
    }
    
    .custom-login-footer {
        padding: 20px 15px;
    }
    
    .custom-login-text {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .custom-logo-1,
    .custom-logo-2 {
        max-height: 35px;
    }
    
    .custom-login-logos {
        gap: 15px;
    }
}
