/* Fase 6 - mejoras visuales para el área privada de agentes en la raíz. */
.agent-shell {
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 52%, #f8fafc 100%);
}

.agent-hero-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.agent-hero-strip {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 45%, #0f172a 100%);
    color: #fff;
    padding: 2rem;
}

.agent-card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.agent-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding: 1.25rem 1.5rem;
}

.agent-card .card-body {
    padding: 1.5rem;
}

.agent-metric {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 1rem;
}

.agent-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    background: #f1f5f9;
}

.agent-table-wrapper {
    overflow-x: auto;
}

.agent-property-thumb {
    width: 118px;
    height: 86px;
    border-radius: 14px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.agent-property-title {
    max-width: 320px;
    line-height: 1.25;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.agent-badge-success {
    color: #166534;
    background: #dcfce7;
}

.agent-badge-muted {
    color: #334155;
    background: #e2e8f0;
}

.agent-action-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agent-pagination .page-link {
    border-radius: 12px;
    margin: 0 0.15rem;
}

.agent-empty-state {
    border-radius: 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 2rem;
    text-align: center;
}

.agent-login-panel {
    max-width: 1040px;
    margin: 0 auto;
}

.agent-login-aside {
    min-height: 100%;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(15, 23, 42, 0.96));
    color: #fff;
}

@media (max-width: 767.98px) {
    .agent-hero-strip,
    .agent-card .card-body,
    .agent-card .card-header {
        padding: 1.1rem;
    }

    .agent-property-thumb {
        width: 92px;
        height: 72px;
    }
}

/* Fase modernización 9 - área pública usuario/agente */
.agent-auth-page {
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.agent-auth-wrapper {
    width: 100%;
}

.agent-auth-card {
    max-width: 1040px;
    margin: 0 auto;
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.10);
}

.agent-auth-content {
    width: 100%;
    padding: clamp(1.25rem, 4vw, 2.6rem);
}

.agent-auth-inner {
    max-width: 820px;
    margin: 0 auto;
}

.agent-auth-inner h1 {
    color: #0f172a;
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 0.35rem;
}

.agent-auth-inner .account-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.6rem;
}

.agent-auth-inner form {
    text-align: left;
}

.agent-auth-inner .form-control,
.agent-property-form .form-control,
.agent-property-form .form-select,
.agent-property-form select,
.agent-property-form textarea {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.42);
    background-color: #f8fafc;
    color: #0f172a;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.agent-auth-inner .form-control:focus,
.agent-property-form .form-control:focus,
.agent-property-form .form-select:focus,
.agent-property-form select:focus,
.agent-property-form textarea:focus {
    border-color: #34d399;
    background-color: #ffffff;
    box-shadow: 0 0 0 0.22rem rgba(52, 211, 153, 0.16);
}

.agent-auth-inner .form-check-inline {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: #f8fafc;
}

.agent-auth-inner .form-check-input {
    margin-top: 0;
    margin-right: 0.4rem;
}

.agent-auth-inner .login-or {
    margin: 1.25rem 0 0.85rem;
}

.agent-auth-inner .dont-have {
    color: #64748b;
}

.agent-auth-inner .dont-have a,
.agent-property-title a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.agent-auth-inner .dont-have a:hover,
.agent-property-title a:hover {
    color: #115e59;
    text-decoration: underline;
}

.agent-form-card {
    width: 100%;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

.agent-property-form-page .double-down-line {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.agent-property-form {
    width: 100%;
}

.agent-property-form .description {
    width: 100%;
}

.agent-property-form h5.text-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0 0.75rem;
    color: #0f172a !important;
    font-size: 1.15rem;
    font-weight: 800;
}

.agent-property-form h5.text-secondary::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #86efac, #34d399);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.14);
}

.agent-property-form hr {
    border-color: rgba(148, 163, 184, 0.22);
    opacity: 1;
}

.agent-property-form .form-group.row {
    align-items: center;
    margin-bottom: 1rem;
}

.agent-property-form .col-form-label {
    color: #334155;
    font-weight: 700;
}

.agent-property-form small {
    display: block;
    margin-top: 0.45rem;
    color: #64748b;
    line-height: 1.5;
}

.agent-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.agent-property-form .filepond--root {
    font-family: inherit;
}

.agent-property-form .filepond--panel-root {
    border-radius: 18px;
    background-color: #f8fafc;
    border: 1px dashed rgba(20, 184, 166, 0.38);
}

.agent-table-wrapper .table {
    min-width: 780px;
}

.agent-action-bar .btn {
    border-radius: 999px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .agent-auth-card {
        border-radius: 22px;
    }

    .agent-auth-content {
        padding: 1.3rem;
    }

    .agent-form-actions {
        justify-content: stretch;
    }

    .agent-form-actions .btn,
    .agent-form-actions input[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .agent-auth-inner .form-check-inline {
        width: 100%;
        justify-content: flex-start;
        margin-right: 0;
    }

    .agent-property-form .form-group.row {
        align-items: stretch;
    }
}
