/* TransferHub 2027 · Acceso y registro de agencias */

.th27-agency-auth {
    padding: 52px 0 90px;
}

.th27-agency-intro {
    max-width: 960px;
    margin: 0 auto 30px;
    text-align: center;
}

.th27-agency-intro h1 {
    margin: 12px 0 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1;
    letter-spacing: -2.6px;
}

.th27-agency-intro h1 span {
    background: linear-gradient(90deg, #23bfff, #18df92);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.th27-agency-intro p {
    max-width: 730px;
    margin: 18px auto 0;
    color: var(--th27-soft);
    font-size: 15px;
    line-height: 1.7;
}

.th27-agency-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.th27-agency-benefit {
    min-height: 120px;
    padding: 17px;
    border: 1px solid var(--th27-border);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(10, 36, 58, .90),
            rgba(5, 22, 37, .92)
        );
}

.th27-agency-benefit i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(23, 135, 255, .11);
    color: #5fc2ff;
    font-style: normal;
    font-size: 16px;
}

.th27-agency-benefit strong {
    display: block;
    margin-top: 12px;
    font-size: 12px;
}

.th27-agency-benefit span {
    display: block;
    margin-top: 5px;
    color: var(--th27-muted);
    font-size: 10px;
    line-height: 1.5;
}

.th27-auth-grid {
    display: grid;
    grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
    gap: 16px;
    align-items: start;
}

.th27-auth-card {
    overflow: hidden;
    border: 1px solid var(--th27-border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(9, 32, 52, .97),
            rgba(4, 20, 34, .97)
        );
    box-shadow: 0 24px 70px rgba(0, 0, 0, .19);
}

.th27-auth-card--register {
    border-color: rgba(33, 143, 255, .24);
}

.th27-auth-head {
    padding: 25px 26px;
    border-bottom: 1px solid var(--th27-border);
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(23, 135, 255, .13),
            transparent 38%
        ),
        rgba(8, 30, 49, .88);
}

.th27-auth-card:first-child .th27-auth-head {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(22, 224, 140, .11),
            transparent 38%
        ),
        rgba(8, 30, 49, .88);
}

.th27-auth-head__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69, 164, 235, .22);
    border-radius: 11px;
    background: rgba(23, 135, 255, .10);
    font-size: 18px;
}

.th27-auth-card:first-child .th27-auth-head__icon {
    border-color: rgba(22, 224, 140, .22);
    background: rgba(22, 224, 140, .09);
}

.th27-auth-head h2 {
    margin: 14px 0 0;
    font-size: 25px;
    letter-spacing: -.8px;
}

.th27-auth-head p {
    margin: 7px 0 0;
    color: var(--th27-muted);
    font-size: 11px;
    line-height: 1.55;
}

.th27-auth-body {
    padding: 25px;
}

.th27-auth-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.th27-auth-fields--single {
    grid-template-columns: 1fr;
}

.th27-auth-field {
    display: grid;
    gap: 7px;
}

.th27-auth-field--full {
    grid-column: 1 / -1;
}

.th27-auth-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #deebf5;
    font-size: 11px;
    font-weight: 800;
}

.th27-auth-label small {
    color: var(--th27-muted);
    font-weight: 600;
}

.th27-auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(94, 160, 210, .20);
    border-radius: 11px;
    outline: 0;
    background: rgba(3, 16, 28, .80);
    color: #f5f9ff;
    font: inherit;
    font-size: 13px;
    transition: .16s ease;
}

.th27-auth-field input::placeholder {
    color: #577086;
}

.th27-auth-field input:focus {
    border-color: rgba(38, 156, 255, .72);
    box-shadow: 0 0 0 3px rgba(23, 135, 255, .10);
}

.th27-auth-field .field-error {
    border-color: rgba(255, 82, 106, .72);
    box-shadow: 0 0 0 3px rgba(255, 82, 106, .08);
}

.th27-auth-error {
    margin: 0;
    color: #ff8998;
    font-size: 10px;
    line-height: 1.45;
}

.th27-auth-alert {
    margin-bottom: 17px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 82, 106, .28);
    border-radius: 11px;
    background: rgba(255, 82, 106, .08);
    color: #ff98a6;
    font-size: 11px;
    line-height: 1.5;
}

.th27-auth-submit {
    width: 100%;
    margin-top: 18px;
    border: 0;
    cursor: pointer;
}

.th27-auth-note {
    margin: 14px 0 0;
    color: var(--th27-muted);
    font-size: 10px;
    line-height: 1.55;
}

.th27-auth-separator {
    height: 1px;
    margin: 22px 0;
    background: var(--th27-border);
}

.th27-auth-linkbox {
    padding: 15px;
    border: 1px solid var(--th27-border);
    border-radius: 12px;
    background: rgba(7, 26, 43, .68);
}

.th27-auth-linkbox strong {
    display: block;
    font-size: 12px;
}

.th27-auth-linkbox p {
    margin: 5px 0 0;
    color: var(--th27-muted);
    font-size: 10px;
    line-height: 1.5;
}

.th27-hidden-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.th27-register-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--th27-border);
}

.th27-register-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.th27-register-section-title {
    margin-bottom: 14px;
}

.th27-register-section-title strong {
    display: block;
    font-size: 13px;
}

.th27-register-section-title span {
    display: block;
    margin-top: 3px;
    color: var(--th27-muted);
    font-size: 10px;
}

@media (max-width: 1050px) {
    .th27-agency-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .th27-auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .th27-agency-auth {
        padding-top: 34px;
    }

    .th27-agency-benefits,
    .th27-auth-fields {
        grid-template-columns: 1fr;
    }

    .th27-auth-body,
    .th27-auth-head {
        padding: 20px;
    }
}

/* Recuperación de acceso de agencia */
.th27-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 11px 0 -2px;
}

.th27-forgot-row a {
    color: #62c4ff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: .16s ease;
}

.th27-forgot-row a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
