﻿:root {
    --brand: #fb7305;
    --brand-2: #ff9d42;
    --dark: #0f1216;
    --text: #23262b;
    --muted: #6b7280;
    --soft: #f6f7fb;
    --border-radius: 8px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--soft) 0%, #ffffff 100%);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    line-height: 1.5;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .auth-container {
        flex-direction: row;
        min-height: 600px;
    }
}

.brand-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
    color: white;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    flex: 1.2;
}

    .brand-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("/img/bg/001.webp") no-repeat center center;
        background-size: cover;
        opacity: 0.15;
    }

.brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background-color: var(--brand);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.brand-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.brand-subheading {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 400;
}

.benefits-list {
    list-style: none;
    margin-bottom: 22px;
}

    .benefits-list li {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        font-size: 13px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 7px;
    }

        .benefits-list li i {
            color: var(--brand);
            background: rgba(251, 115, 5, 0.1);
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
            font-size: 12px;
        }

.stats-container {
    display: flex;
    justify-content: space-between;
    margin: 18px 0 22px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9px;
    padding: 16px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 9px;
    margin: 18px 0;
}

    .testimonial p {
        font-style: italic;
        font-size: 13px;
        margin-bottom: 9px;
        line-height: 1.5;
    }

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    font-size: 12px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 13px;
}

.author-role {
    font-size: 11px;
    opacity: 0.8;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    flex: 1;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.module-badge {
    display: block;
    background: rgba(251, 115, 5, 0.1);
    color: var(--brand);
    padding: 6px 13px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.welcome-text {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 8px;
}

    .welcome-text h2 {
        font-size: 22px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 7px;
    }

    .welcome-text p {
        color: var(--muted);
        font-size: 13px;
    }

.form-floating {
    margin-bottom: 1.2rem;
}

    .form-floating > .form-control {
        border: 2px solid #e2e8f0;
        border-radius: var(--border-radius);
        font-size: 14px;
        transition: all 0.2s ease;
        height: calc(3rem + 2px);
        padding: 1rem 0.75rem;
    }

        .form-floating > .form-control:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 0.25rem rgba(251, 115, 5, 0.25);
        }

        .form-floating > .form-control:hover:not(:focus) {
            border-color: #adb5bd;
        }

    .form-floating > label {
        color: var(--muted);
        font-size: 14px;
        transition: all 0.2s ease;
        padding: 1rem 0.75rem;
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        color: var(--brand);
        font-weight: 500;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 15px;
    z-index: 5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius);
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(251, 115, 5, 0.3);
    }

.forgot-link {
    text-align: center;
    display: block;
    margin-top: 15px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 13px;
}

    .forgot-link:hover {
        color: var(--brand-2);
        text-decoration: underline;
    }

.security-notice {
    text-align: center;
    margin-top: 18px;
    padding: 12px;
    background: rgba(251, 115, 5, 0.05);
    border-radius: 7px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .security-notice i {
        margin-right: 7px;
        color: var(--brand);
        font-size: 12px;
    }

.social-auth {
    margin-top: 23px;
    text-align: center;
}

.social-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
}

    .social-divider::before,
    .social-divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #e2e8f0;
    }

    .social-divider span {
        padding: 0 11px;
    }

    .social-buttons {
        display: flex;
        justify-content: center;
        gap: 11px;
    }

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--muted);
    transition: all 0.3s;
    font-size: 15px;
}

    .social-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-color: var(--brand);
        color: var(--brand);
    }

.support-section {
    margin-top: 25px;
    text-align: center;
    padding: 15px;
    background: rgba(246, 247, 251, 0.8);
    border-radius: 9px;
}

    .support-section p {
        font-size: 12px;
        margin-bottom: 7px;
        color: var(--muted);
    }

.support-contact {
    font-weight: 600;
    color: var(--brand);
    font-size: 12px;
}

.system-info {
    margin-top: 20px;
    padding: 9px;
    background: rgba(246, 247, 251, 0.8);
    border-radius: 7px;
    text-align: center;
    font-size: 10px;
    color: var(--muted);
}

/* Footer general simplificado */
.global-footer {
    background: var(--dark);
    color: white;
    padding: 18px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--brand);
        }

.copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.User-Corpo {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background: transparent;
}

.Sop-Dispo {
    font-size: 12px;
}

.Sys-Opt {
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 576px) {
    .main-content {
        padding: 10px;
    }

    .auth-container {
        margin: 5px auto;
        border-radius: 14px;
    }

    .brand-section, .form-section {
        padding: 20px 15px;
    }

    .brand-heading {
        font-size: 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .benefits-list li {
        font-size: 12px;
        padding: 8px;
    }

        .benefits-list li i {
            width: 24px;
            height: 24px;
            font-size: 11px;
        }

    .stats-container {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .social-buttons {
        flex-wrap: wrap;
    }

    .social-btn {
        width: 42px;
        height: 42px;
    }

    .welcome-text h2 {
        font-size: 20px;
    }

    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .brand-section, .form-section {
        padding: 18px 12px;
    }

    .brand-heading {
        font-size: 18px;
    }

    .brand-subheading {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Media queries para dispositivos más grandes */
@media (min-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .auth-container {
        margin: 20px 0;
    }

    .brand-section, .form-section {
        padding: 30px 25px;
    }

    .brand-heading {
        font-size: 24px;
    }

    .brand-subheading {
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .auth-container {
        min-height: 600px;
    }

    .brand-section, .form-section {
        padding: 30px 25px;
    }

    .brand-heading {
        font-size: 26px;
    }
}
