/* Corrected Custom Login Styles for PHPMaker 2024 */

body {
    /* background-image: url(../../_shared/images/bglogin.png); */
    background: linear-gradient(180deg, #1d1d1d, #ded6d6);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-repeat: no-repeat;
    background-size: cover;
}

.ew-login-box {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    width: 50% !important;
    max-width: 1200px;
    min-height: 550px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(226, 181, 36, 0.6);
    box-shadow: 0 0 61.2px 16px rgba(0, 0, 0, 0.10);
}

/* Left container with logo and welcome text */
.left-container {
    display: flex;
    width: 50%;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

/* .left-container img {
    max-width: 100%;
    height: 450px;
    position: relative;
    z-index: 2;
} */

/* Decorative shapes with animations */
.shape-1 {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    bottom: -100px;
    left: -50px;
    z-index: 1;
    animation: floatShape1 10s ease-in-out infinite;
}

.shape-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    top: 50px;
    right: -30px;
    z-index: 1;
    animation: floatShape2 10s ease-in-out infinite;
}

.shape-3 {
    position: absolute;
    width: 80px;
    height: 80px;
    transform: rotate(45deg);
    background-color: rgba(255, 255, 255, 0.1);
    top: 40%;
    left: 35%;
    z-index: 1;
    animation: floatShape3 6s ease-in-out infinite, rotateShape 15s linear infinite;
}


.shape-4 {
    position: absolute;
    width: 200px;
    height: 200px;
    transform: rotate(45deg);
    background-color: rgba(255, 255, 255, 0.1);
    top: -10%;
    left: -10%;
    z-index: 1;
    animation: floatShape3 6s ease-in-out infinite, rotateShape 15s linear infinite;
}


.shape-5 {
    position: absolute;
    width: 200px;
    height: 200px;
    transform: rotate(45deg);
    background-color: rgba(255, 255, 255, 0.1);
    right: -15%;
    bottom: -15%;
    z-index: 1;
    animation: floatShape3 6s ease-in-out infinite, rotateShape 15s linear infinite;
}

/* Define keyframe animations for shapes */
@keyframes floatShape1 {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(15px);
    }
    50% {
        transform: translateY(-15px) translateX(30px);
    }
    75% {
        transform: translateY(-40px) translateX(5px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes floatShape2 {
    0% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(20px) translateX(-15px);
    }
    66% {
        transform: translateY(-15px) translateX(-25px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes floatShape3 {
    0% {
        transform: rotate(45deg) translateY(0) translateX(0);
    }
    25% {
        transform: rotate(45deg) translateY(20px) translateX(10px);
    }
    50% {
        transform: rotate(45deg) translateY(10px) translateX(20px);
    }
    75% {
        transform: rotate(45deg) translateY(-10px) translateX(15px);
    }
    100% {
        transform: rotate(45deg) translateY(0) translateX(0);
    }
}

@keyframes rotateShape {
    0% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(405deg); /* 360 + 45 to complete full rotation while keeping initial 45deg */
    }
}

/* Pulse animation for the welcome text heading */
@keyframes pulseText {
    0% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
    100% {
        opacity: 0.9;
    }
}

/* Welcome text */
.welcome-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
    color: #1d1d1d;
    z-index: 2;
    padding: 0 2rem;
    gap: 2rem;
}

.welcome-text > .logo {
    width: 200px;
}

.welcome-text > .logo > img {
    width: 100%;
    height: auto;
}

.welcome-text h1 {
    font-size: 1.7rem !important;
    font-weight: bold;
    margin-bottom: 2rem;
    animation: pulseText 3s ease-in-out infinite;
}

.welcome-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Right side login form */
.ew-login-card {
    width: 50%;
    border: none !important;
    border-radius: 0 !important;
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem !important;
    color: white !important;
}

.card-body{
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 2rem !important;
    background: white;
    border-radius: 20px;
}

/* Remove default card styling */
.ew-login-card .card-header {
    display: none;
}

.card{
    margin: unset !important;
    border-radius: unset !important;
    border: none !important;
}

/* Form title */
.card-body h2 {
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    color: #edbb1d;
}

/* Style form inputs */
.ew-login-card input,
.ew-login-card .form-control {
    background-color: rgba(160, 160, 160, 0.1) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 15px !important;
    font-size: 1rem !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
    color: #333 !important;
}

.ew-login-card input:focus,
.ew-login-card .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
}

/* Style the input groups if present */
.ew-login-card .input-group-append,
.ew-login-card .input-group-text {
    background-color: #f8f9fa !important;
    border: none !important;
    color: #495057 !important;
}

/* Style form labels */
.ew-login-card label {
    color: white !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

/* Style the login button */
.ew-login-card button[type=submit],
.ew-login-card button[name=btn-action],
.ew-login-card .btn-primary {
    background-color: #edbb1d !important;
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: bold !important;
    padding: 10px 15px !important;
    font-size: 1rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.ew-login-card button[type=submit]:hover,
.ew-login-card button[name=btn-action]:hover,
.ew-login-card .btn-primary:hover {
    background-color: #d4a619 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 187, 29, 0.3);
}

/* Style any links in the form */
.ew-login-card a {
    color: #edbb1d !important;
    text-decoration: underline !important;
    transition: opacity 0.3s ease !important;
}

.ew-login-card a:hover {
    opacity: 0.8 !important;
}

.ew-login-card input, .ew-login-card .form-control {
    margin-bottom: unset !important;
}

/* Logo container animation */
.logo-container {
    transition: all 0.5s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Responsive design */

@media (max-width: 1024px) { 
    .ew-login-box {
        width: unset !important;
    }
}

@media (max-width: 768px) {
    .ew-login-box {
        width: unset !important;
        flex-wrap: nowrap;
    }
    
    .left-container,
    .ew-login-card {
        width: 100%;
    }
    
    .left-container {
        /* padding: 3rem 1rem; */
    }
    
    .welcome-text {
        position: static;
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    body {
    display: block;
    background-size: cover;
}
    .ew-login-box {
        width: unset !important;
        flex-wrap: wrap;
    }

    .left-container img {
        height: 200px;
    }
    
    .welcome-text > .logo {
        width: 100px;
    }
    
    .ew-login-card {
        padding: 1.5rem !important;
    }
    
    .welcome-text h1 {
        font-size: 1rem;
    }
}

@media (min-width: 576px) {
    input[type=password]:not([size]), input[type=text]:not([size]):not(.ew-page-number):not(.cke_dialog_ui_input_text):not(.tox-textfield):not(.form-control-plaintext) {
        min-width: unset !important;
    }
}

#theme-settings-toggle{
            display: none !important;
        }

        #font-settings-toggle {
            display: none !important;
        }

        #controls-toggle{
    display: none !important;
}