﻿: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: 1200px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 10px 0;
}

.auth-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .auth-header::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;
    }

.module-name {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    color: var(--brand);
    font-weight: 600;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: rgba(251, 115, 5, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid rgba(251, 115, 5, 0.3);
}

    .auth-logo i {
        font-size: 26px;
        color: var(--brand);
    }

.auth-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.4;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
}

.info-sidebar {
    background: linear-gradient(to bottom, #f8f9fa, #f1f3f5);
    padding: 20px 15px;
    order: 2;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--box-shadow);
    margin-bottom: 18px;
    border-left: 4px solid var(--brand);
}

    .info-card h4 {
        color: var(--brand);
        margin-bottom: 10px;
        font-weight: 600;
        font-size: 15px;
    }

    .info-card p {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 0;
        line-height: 1.5;
    }

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .benefit-item i {
        color: var(--brand);
        margin-right: 10px;
        font-size: 15px;
        width: 20px;
        text-align: center;
    }

    .benefit-item span {
        font-size: 13px;
        line-height: 1.4;
    }

.process-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--box-shadow);
    margin-top: 15px;
}

.process-title {
    color: var(--brand);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    text-align: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process-step {
    display: flex;
    align-items: flex-start;
}

.step-number {
    background: var(--brand);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.auth-body {
    padding: 20px 15px;
    order: 1;
}

/* Estilos mejorados para los inputs de Bootstrap */
.form-floating {
    margin-bottom: 1rem;
}

    .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;
    }

.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);
    }

.terms-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(246, 247, 251, 0.8);
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.terms-text {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.form-check-input {
    margin-top: 0.2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.footer-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: var(--brand-2);
        text-decoration: underline;
    }

/* 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;
}

/* Media queries para dispositivos más grandes */
@media (min-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .auth-container {
        margin: 20px 0;
    }

    .auth-header {
        padding: 25px;
    }

    .module-name {
        font-size: 13px;
    }

    .auth-logo {
        width: 70px;
        height: 70px;
    }

        .auth-logo i {
            font-size: 32px;
        }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .content-wrapper {
        flex-direction: row;
    }

    .info-sidebar {
        flex: 1;
        padding: 25px;
        order: 1;
    }

    .auth-body {
        flex: 1;
        padding: 25px;
        order: 2;
    }

    .info-card {
        padding: 20px;
        margin-bottom: 20px;
    }

        .info-card h4 {
            font-size: 16px;
        }

    .process-container {
        padding: 20px;
    }

    .process-title {
        font-size: 16px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .step-text {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .auth-header {
        padding: 25px;
    }

    .info-sidebar, .auth-body {
        padding: 25px;
    }
}

/* Ajustes específicos para dispositivos muy pequeños */
@media (max-width: 360px) {
    .auth-header {
        padding: 15px 12px;
    }

    .auth-title {
        font-size: 18px;
    }

    .auth-subtitle {
        font-size: 12px;
    }

    .info-sidebar, .auth-body {
        padding: 15px 12px;
    }

    .info-card {
        padding: 15px;
    }

    .benefit-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }

        .benefit-item i {
            margin-bottom: 5px;
        }

    .process-step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 5px;
        margin-right: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}