﻿/* ========== Auth (login / registro) ========== */
.auth-body {
    background-color: var(--fo-bg);
    min-height: 100vh;
}

.auth-page-wrap {
    max-width: 80rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

    .auth-page-wrap .auth-card {
        border: 0;
        border-radius: 1.25rem;
        overflow: hidden;
        box-shadow: 0 1rem 2.5rem rgba(27, 54, 97, 0.12);
    }

.auth-hero {
    display: none;
}

.auth-hero__image {
    object-fit: cover;
    min-height: 100%;
}

.auth-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 54, 97, 0.82);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: #fff;
}

.auth-hero__caption h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-hero__caption p {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

.auth-form-panel {
    background: #fff;
    padding: 2rem 2.25rem;
    border-right: 4px solid var(--bs-primary);
}

.auth-logo img {
    max-height: 45px;
    width: auto;
}

.auth-title {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-label {
    color: var(--bs-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.auth-field-input,
.auth-form-panel .form-select.auth-field-input {
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-left: 4px solid var(--bs-primary);
    border-radius: 0.35rem;
    padding: 0.7rem 0.85rem;
}

    .auth-field-input:focus,
    .auth-form-panel .form-select.auth-field-input:focus {
        border: 1px solid var(--auth-input-border) !important;
        border-left: 4px solid var(--bs-primary) !important;
        border-left-color: var(--bs-primary) !important;
        box-shadow: none !important;
    }

.input-group > .auth-field-input {
    border-left: 4px solid var(--bs-primary);
}

.input-group .btn-outline-secondary {
    border-color: var(--auth-input-border);
    background: var(--auth-input-bg);
}

.auth-link {
    color: var(--bs-secondary-rgb);
    text-decoration: none;
    font-family: "Helvetica Neue";
    font-style: italic !important;
}

.auth-link-registro {
    font-family: "Helvetica Neue";
    font-style: normal !important;
    text-decoration: underline;
    font-weight: bold;
    color: var(--bs-primary) !important;
}

    .auth-link-registro:hover {
        opacity: 0.8 !important;
    }

.auth-link:hover {
    text-decoration: underline;
}

.auth-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    background: #f3f4f6;
    padding: 1rem 1rem;
    text-align: center;
    color: var(--bs-primary);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

#foto-upload-text {
    color: var(--bs-secondary-rgb) !important;
}

.auth-upload-zone:hover,
.auth-upload-zone.is-dragover {
    border-color: var(--bs-primary);
    background: #eef2f7;
}

.auth-upload-zone.has-file {
    border-style: solid;
    border-color: var(--bs-primary);
}

.auth-footer {
    border-top: 0.01rem solid #9ca3af;
    color: #9ca3af;
    font-size: 1rem;
}

.auth-form-panel #portal-api-alert {
    margin-bottom: 1rem;
}

.auth-divider {
    position: relative;
    margin: 1.75rem 0 1.25rem;
    text-align: center;
}

    .auth-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        border-top: 1px solid #e5e7eb;
        transform: translateY(-50%);
    }

    .auth-divider span {
        position: relative;
        display: inline-block;
        background: #fff;
        padding: 0 0.85rem;
        color: #9ca3af;
        font-size: 0.8rem;
        white-space: nowrap;
        z-index: 1;
    }

.auth-social-btn {
    width: 3rem;
    height: 3rem;
    background-color: var(--auth-input-bg) !important;
    color: var(--bs-primary);
    transition: transform 0.2s ease-in-out !important;
}

    .auth-social-btn:hover {
        transform: scale(1.1) !important;
    }


.auth-upload-preview {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    margin-top: 0.75rem;
}

.perfil-foto-upload {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    border: 2px dashed #d1d5db;
    border-radius: 0.65rem;
    background: #f3f4f6;
    padding: 0.5rem;
    text-align: center;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.8rem;
    transition: border-color 0.15s, background-color 0.15s;
}

    .perfil-foto-upload:hover,
    .perfil-foto-upload.is-dragover {
        border-color: var(--bs-primary);
        background: #eef2f7;
    }

    .perfil-foto-upload.has-file {
        border-style: solid;
        border-color: var(--bs-primary);
    }

.perfil-foto-preview {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.35rem;
    margin-top: 0.35rem;
}

.auth-field-input::-webkit-password-toggle-button,
.auth-field-input::-webkit-reveal-button,
.auth-field-input::-webkit-clear-button {
    display: none !important;
    width: 0;
    height: 0;
}

.auth-field-input::-ms-reveal {
    display: none;
}

.toggle-password {
    color: var(--bs-primary) !important;
    border: unset !important;
}

    .toggle-password:active {
        background-color: var(--auth-input-bg) !important;
    }


/*Register*/
.column-social-register {
    display: none !important;
}

.register-field-input {
    padding: 0.5rem 0.6rem !important;
}

.btn-register-auth:active {
    background-color: var(--bs-primary) !important;
}


.btn-register-auth:disabled {
    pointer-events: auto !important;
    cursor: not-allowed !important;
}

.span-opc {
    color: var(--bs-secondary-info) !important;
    font-weight: normal;
}


@media (max-width: 767.98px) {
    .auth-form-panel {
        padding: 1.5rem;
        border-right: 0;
        border-top: 4px solid var(--bs-primary);
    }

    .auth-logo img {
        max-height: 52px;
   
    }
}

@media (min-width:1024px) {
    .auth-hero {
        display: block;
        position: relative;
        min-height: 520px;
    }

    .div-social-phone {
        display: none !important;
    }

    .auth-form-panel-register {
        border-right: 4px solid var(--bg-info-card) !important;
    }

    .column-social-register {
        padding:0rem 0.2rem;
        background-color: #F8FAFC !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

        .column-social-register > .div-flex-social {
            flex-direction: column !important;
            align-items: center;
            justify-content: center;
            gap: 1rem !important;
        }

        .column-social-register > .auth-divider{
            display:none;
        }

        .div-info-column-social {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center;
        }

        .div-info-column-social p:nth-child(1), .div-info-column-social p:nth-child(2){
            font-weight:bold;
        }

            .div-info-column-social p:nth-child(2){
                padding-bottom:0.7rem;
            }

            .div-info-column-social p:nth-child(3) {
                font-size: 0.85rem;
                color: rgb(107, 114, 128) !important;
                padding: 0rem 1rem;
                padding-bottom: 0.7rem;
            }

        .div-info-column-social p {
            margin-bottom:0 !important;
        }
}

@media (min-width:1400px) {
    .column-social-register {
        padding: 0rem 0.1rem;
    }

        .div-info-column-social p:nth-child(1), .div-info-column-social p:nth-child(2) {
            font-weight: bold;
        }

        .div-info-column-social p:nth-child(2) {
            padding-bottom: 0.7rem;
        }

        .div-info-column-social p:nth-child(3) {
            padding: 0rem 1rem;
            padding-bottom: 1.5rem;
        }

        .div-info-column-social p {
            margin-bottom: 0 !important;
        }
}

