/* ==========================================================
   Acceso a DeCA
   ========================================================== */

.deca-login-page {
    min-height: 100vh;
    margin: 0;
    color: #243746;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(77, 166, 214, 0.25),
            transparent 34%
        ),
        linear-gradient(135deg, #12374d 0%, #245f80 100%);
}

.deca-login-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 0.85fr);
    width: min(1120px, calc(100% - 48px));
    min-height: 640px;
    margin: 0 auto;
    padding: 48px 0;
}

.deca-login-info,
.deca-login-access {
    min-width: 0;
}

.deca-login-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 60px;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            rgba(12, 49, 70, 0.84),
            rgba(23, 91, 126, 0.72)
        );
    border-radius: 18px 0 0 18px;
    box-shadow: 0 22px 55px rgba(6, 29, 43, 0.28);
}

.deca-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.deca-login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #17465f;
    font-size: 28px;
    font-weight: 800;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(5, 28, 40, 0.2);
}

.deca-login-brand strong,
.deca-login-brand span {
    display: block;
}

.deca-login-brand strong {
    font-size: 25px;
    line-height: 1.1;
}

.deca-login-brand div > span {
    margin-top: 3px;
    color: #cfe7f3;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.deca-login-description {
    max-width: 560px;
    margin: 70px 0 50px;
}

.deca-login-eyebrow {
    margin-bottom: 14px;
    color: #a9d9f0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.deca-login-description h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.12;
}

.deca-login-description > p:last-child {
    max-width: 510px;
    margin: 0;
    color: #d6eaf4;
    font-size: 18px;
    line-height: 1.65;
}

.deca-login-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.deca-login-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 14px;
    color: #edf8fc;
    font-size: 15px;
}

.deca-login-benefits .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #17465f;
    font-size: 11px;
    background: #bce5f5;
    border-radius: 50%;
}

.deca-login-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #f5f8fa;
    border-radius: 0 18px 18px 0;
    box-shadow: 0 22px 55px rgba(6, 29, 43, 0.28);
}

.deca-login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    background: #fff;
    border: 1px solid #dce6ec;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(24, 64, 87, 0.1);
}

.deca-login-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.deca-login-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 19px;
    background: #2d7da7;
    border-radius: 12px;
}

.deca-login-card-header h2 {
    margin: 0 0 5px;
    color: #183b50;
    font-size: 25px;
    font-weight: 700;
}

.deca-login-card-header p {
    margin: 0;
    color: #6d7f89;
    font-size: 14px;
}

.deca-login-card label {
    margin-bottom: 7px;
    color: #29495b;
    font-weight: 600;
}

.deca-login-card .form-group {
    margin-bottom: 21px;
}

.deca-login-input .input-group-addon {
    min-width: 46px;
    color: #557788;
    background: #f4f7f9;
    border-color: #bdcdd6;
    border-radius: 6px 0 0 6px;
}

.deca-login-input .form-control {
    height: 46px;
    color: #263e4b;
    border-color: #bdcdd6;
    border-radius: 0 6px 6px 0;
    box-shadow: none;
}

.deca-login-input .form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.14);
}

.deca-login-input:focus-within .input-group-addon {
    color: #2d7da7;
    border-color: #3c8dbc;
    background: #edf7fc;
}

.deca-login-submit {
    height: 48px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    background: #2779a4;
    border-color: #216b91;
    border-radius: 6px;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.deca-login-submit:hover,
.deca-login-submit:focus {
    background: #1f678d;
    border-color: #195674;
    transform: translateY(-1px);
}

.deca-login-submit .glyphicon {
    margin-left: 8px;
    font-size: 12px;
}

.deca-login-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 22px;
    border-radius: 6px;
}

.deca-login-error .glyphicon {
    margin-top: 2px;
}

.deca-login-help {
    margin: 24px 0 0;
    color: #778892;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.deca-login-footer {
    margin: 22px 0 0;
    color: #768b97;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    .deca-login-shell {
        grid-template-columns: 1fr;
        width: min(560px, calc(100% - 30px));
        padding: 30px 0;
    }

    .deca-login-info {
        padding: 30px;
        border-radius: 16px 16px 0 0;
    }

    .deca-login-description {
        margin: 42px 0 30px;
    }

    .deca-login-description h1 {
        font-size: 34px;
    }

    .deca-login-benefits {
        display: none;
    }

    .deca-login-access {
        padding: 30px;
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 520px) {
    .deca-login-shell {
        width: 100%;
        min-height: 100vh;
        padding: 0;
    }

    .deca-login-info,
    .deca-login-access {
        border-radius: 0;
    }

    .deca-login-info {
        padding: 25px 20px;
    }

    .deca-login-description {
        margin: 28px 0 8px;
    }

    .deca-login-description h1 {
        margin-bottom: 12px;
        font-size: 27px;
    }

    .deca-login-description > p:last-child {
        font-size: 15px;
    }

    .deca-login-access {
        justify-content: flex-start;
        padding: 24px 15px;
    }

    .deca-login-card {
        padding: 26px 20px;
    }

    .deca-login-card-header h2 {
        font-size: 22px;
    }
}

.deca-login-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 30px 15px;
}

.deca-login-centered .deca-login-card {
    width: 100%;
    max-width: 430px;
}

.deca-login-card-header h1 {
    margin: 0 0 5px;
    color: #183b50;
    font-size: 25px;
    font-weight: 700;
}

/* Formulario DeCA */
.deca-form {
    --deca-blue: #1f4565;
    --deca-blue-soft: #edf4f8;
    --deca-border: #d9e2e8;
    --deca-text: #263746;
    --deca-muted: #667784;
    --deca-danger: #b8433f;
}

.deca-form .box-body {
    padding: 24px;
    background: #f5f7f9;
}

.deca-form-intro {
    margin-bottom: 24px;
    padding: 16px 18px;
    color: var(--deca-text);
    background: var(--deca-blue-soft);
    border: 1px solid #cbdde8;
    border-left: 5px solid var(--deca-blue);
    border-radius: 6px;
}

.deca-form-intro strong {
    display: block;
    margin-bottom: 4px;
    color: var(--deca-blue);
    font-size: 16px;
}

.deca-general-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.deca-form .deca-section-title {
    grid-column: 1 / -1;
    margin: 18px 0 0;
    padding: 10px 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    background: var(--deca-blue);
    border-radius: 5px;
}

.deca-form .deca-section-title:first-child {
    margin-top: 0;
}

.deca-form .form-group {
    margin-bottom: 0;
}

.deca-form .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--deca-text);
    font-weight: 600;
}

.deca-form .form-control {
    min-height: 42px;
    color: #243746;
    background: #fff;
    border: 1px solid #bdcbd4;
    border-radius: 5px;
    box-shadow: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.deca-form textarea.form-control {
    min-height: 82px;
    resize: vertical;
}

.deca-form .form-control:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.14);
}

.deca-field-wide {
    grid-column: 1 / -1;
}

.deca-envios-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0 14px;
}

.deca-envios-header h3 {
    margin: 0 0 4px;
    color: var(--deca-blue);
    font-size: 21px;
    font-weight: 600;
}

.deca-envios-header p {
    margin: 0;
    color: var(--deca-muted);
}

.deca-envio-card {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--deca-border);
    border-top: 4px solid #3c8dbc;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(30, 55, 75, 0.08);
}

.deca-envio-card legend {
    width: auto;
    margin: 0 0 16px;
    padding: 0 10px;
    color: var(--deca-blue);
    border: 0;
    font-size: 18px;
    font-weight: 700;
}

.deca-envio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.deca-envio-grid .campo-mercancia,
.deca-envio-grid .campo-justificacion {
    grid-column: 1 / -1;
}

.deca-envio-medidas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.deca-envio-medidas > .col-md-4 {
    width: auto;
    padding: 0;
    float: none;
}

.deca-envio-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5ebef;
}

.deca-form .quitar-envio {
    color: var(--deca-danger);
    background: #fff;
    border-color: #d9aaa8;
}

.deca-form .quitar-envio:hover,
.deca-form .quitar-envio:focus {
    color: #fff;
    background: var(--deca-danger);
    border-color: var(--deca-danger);
}

.deca-add-row {
    padding: 14px;
    text-align: center;
    background: #fff;
    border: 2px dashed #afc5d3;
    border-radius: 7px;
}

.deca-add-row .btn {
    min-width: 230px;
}

.deca-form .box-footer {
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #dce4e9;
}

.deca-form .box-footer .btn-primary {
    min-width: 170px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .deca-form .box-body {
        padding: 15px;
    }

    .deca-general-grid,
    .deca-envio-grid,
    .deca-envio-medidas {
        grid-template-columns: 1fr;
    }

    .deca-field-wide,
    .deca-envio-grid .campo-mercancia,
    .deca-envio-grid .campo-justificacion {
        grid-column: auto;
    }

    .deca-envios-header {
        display: block;
    }

    .deca-envio-card {
        padding: 15px;
    }

    .deca-form .box-footer .btn {
        display: block;
        width: 100%;
        margin: 7px 0 0;
    }
}
