:root {
    --primary-color: #ff0000;
    --secondary-color: #ffffff;
}

/* verify */

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.left-side {
    flex: 1.2;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.right-side {
    flex: 0.8;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
}

.welcome-content {
    max-width: 500px;
    text-align: left;
}

.logo-acciona {
    height: 150px;
    margin-bottom: 3rem;
}

/* Login Card Styles */
.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.form-control-custom {
    background: white !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #555 !important;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-control-custom::placeholder {
    color: #999;
}

.form-control-custom:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    outline: none;
}

.form-label-white {
    color: white !important;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}


.btn-login {
    background-color: white;
    color: var(--primary-color);
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 700;
    width: 100%;
    border: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Captcha Styling */
.captcha-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-img {
    background: white;
    color: #333;
    padding: 0.25rem 1rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 5px;
    border-radius: 5px;
    user-select: none;
}

/* Dashboard Styles */
.navbar-acciona {
    background-color: white !important;
    border-bottom: 3px solid var(--primary-color);
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    height: 52px;
}

.module-card {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none !important;
    color: inherit;
    border-top: 5px solid transparent;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.module-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1);
}

.module-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}

.module-desc {
    font-size: 0.95rem;
    color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        flex: none;
        height: auto;
        min-height: 50vh;
        padding: 4rem 2rem;
    }

    .logo-acciona {
        max-width: 300px;
    }
}

/* PWA Installation Banner (Mobile Only) */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 16px 20px;
    display: none;
    /* JS will show it */
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    max-width: 500px;
    margin: 0 auto;
}

/* Hide on Desktop */
@media (min-width: 992px) {
    #pwa-install-banner {
        display: none !important;
    }
}

#pwa-install-banner .banner-content {
    display: flex;
    align-items: center;
    flex: 1;
}

#pwa-install-banner .app-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

#pwa-install-banner .banner-text {
    line-height: 1.3;
}

#pwa-install-banner .banner-title {
    font-weight: 700;
    display: block;
    font-size: 1rem;
    color: #333;
}

#pwa-install-banner .banner-desc {
    font-size: 0.85rem;
    color: #666;
}

#pwa-install-btn {
    white-space: nowrap;
    margin-left: 10px;
}