﻿input, select, textarea {
    max-width: 100%;
}

.domicilioFiscal input {
    margin: 5px;
}
/* Estilos base */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}*/

.container-fluid {
    padding: 0 !important;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(240deg, #405189 50%, #f3f3f9);
    position: relative;
    overflow: hidden;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Content/Images/cover-pattern.png');
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none; /* Permite hacer clic a través de la capa */
}

.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    width: 95%;
    max-width: 1400px;
    height: 800px;
    max-height: 90vh;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.panel-imagen {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-width: 0;
    position: relative;
}

    .panel-imagen .nombreTenant {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        text-align: center;
        color: white;
        font-size: 14px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
    }

/* Estilos específicos para creación de cuenta */
.panel-account {
    flex: 1;
    background-color: white;
    padding: 30px 40px;
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.create-account-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.create-account-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e5e8;
}

    .create-account-header h1 {
        color: #405189;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .create-account-header p {
        color: #6c757d;
        font-size: 15px;
    }

/* Formulario */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

    .form-row .form-group {
        margin-left: 5px;
        flex: 1;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #495057;
        font-size: 13px;
    }

        .form-group label:after {
            content: "*";
            color: #dc3545;
            margin-left: 3px;
        }

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e5e8;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f8f9fa;
    color: #495057;
    height: 38px;
}

    .form-control:focus {
        outline: none;
        border-color: #405189;
        box-shadow: 0 0 0 3px rgba(64, 81, 137, 0.1);
        background-color: white;
    }

    .form-control[readonly] {
        background-color: #f8f9fa;
        cursor: not-allowed;
    }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
}

/* Input con icono para fecha */
#calFechaCobro {
    position: relative;
    width: 100%;
}

    #calFechaCobro .input-group-btn {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 2;
    }

    #calFechaCobro .btn {
        background: transparent;
        border: none;
        height: 100%;
        color: #405189;
        padding: 0 12px;
    }

        #calFechaCobro .btn:hover {
            background-color: rgba(64, 81, 137, 0.1);
        }

/* Campos de contraseña */
#pwd-container {
    width: 100%;
}

    #pwd-container .row {
        display: flex;
        gap: 20px;
        margin: 0;
    }

    #pwd-container .col-sm-6 {
        flex: 1;
        padding: 0;
    }

/* Barra de fortaleza de contraseña */
.pwstrength_viewport_progress {
    margin-top: 8px;
    width: 100%;
}

    .pwstrength_viewport_progress .progress {
        height: 5px;
        background-color: #e2e5e8;
        border-radius: 3px;
        overflow: hidden;
    }

    .pwstrength_viewport_progress .progress-bar {
        transition: width 0.3s;
    }

/* Domicilio Fiscal */
#DomicilioFiscal {
    width: 100%;
}

.btn-link {
    color: #000000e3 !important;
}
/* Validación */
.text-danger {
    color: #dc3545 !important;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.ng-invalid.ng-touched {
    border-color: #dc3545 !important;
}

.ng-valid.ng-touched {
    border-color: #28a745 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-height: none;
        max-width: 800px;
        margin: 20px auto;
    }

    .panel-imagen {
        flex: none;
        height: 200px;
        width: 100%;
    }

    .panel-account {
        padding: 25px 30px;
    }

    .create-account-header h1 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    #pwd-container .row {
        flex-direction: column;
        gap: 15px;
    }

    .login-wrapper {
        width: 95%;
        height: auto;
    }

    .panel-account {
        padding: 20px;
    }

    .create-account-header {
        margin-bottom: 20px;
    }

        .create-account-header h1 {
            font-size: 24px;
        }

        .create-account-header p {
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .form-control {
        padding: 8px 10px;
        font-size: 13px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .panel-account {
        padding: 15px;
    }
}

/* Estilos adicionales para mejor UX */
.input-feedback {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .input-feedback.valid {
        color: #28a745;
    }

    .input-feedback.invalid {
        color: #dc3545;
    }

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

.field-info {
    font-size: 11px;
    color: #6c757d;
    margin-top: 3px;
    font-style: italic;
}

/* Mejoras para campos específicos */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #405189;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(64, 81, 137, 0.25);
}

/* Estilo para campos deshabilitados */
input:disabled,
select:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* Scrollbar personalizado para el panel de cuenta */
.panel-account::-webkit-scrollbar {
    width: 8px;
}

.panel-account::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.panel-account::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .panel-account::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }

/* Espaciado y márgenes mejorados */
.form-row:last-child {
    margin-bottom: 20px;
}

hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #e2e5e8;
}

.text-right {
    text-align: right;
}

.margin-v-0-15 {
    margin: 0 0 15px 0;
}

.row {
    margin: 0;
    width: 100%;
}

.col-xs-12 {
    width: 100%;
}



.create-account-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e5e8;
    position: relative;
    overflow: hidden;
}

    .create-account-header h1 {
        color: #405189;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
        flex-wrap: wrap;
    }

        .create-account-header h1:first-child {
            display: inline-block;
            animation: letterPulse 2s infinite ease-in-out;
            color: #4a5ba5;
            text-shadow: 0 0 10px rgba(74, 91, 165, 0.3);
        }

        .create-account-header h1:nth-child(2) {
            display: inline-block;
            margin-left: 0;
        }

    .create-account-header p {
        color: #6c757d;
        font-size: 15px;
        margin-top: 5px;
        position: relative;
        z-index: 1;
    }

/* Animación de pulso para la letra C */
@keyframes letterPulse {
    0%, 100% {
        transform: scale(1);
        color: #4a5ba5;
        text-shadow: 0 0 10px rgba(74, 91, 165, 0.3);
    }

    50% {
        transform: scale(1.3);
        color: #405189;
        text-shadow: 0 0 15px rgba(64, 81, 137, 0.5), 0 0 20px rgba(64, 81, 137, 0.3);
    }
}
/* Responsive */
@media (max-width: 768px) {
    .create-account-header h1 {
        font-size: 24px;
        gap: 0;
    }

        .create-account-header h1:first-child {
            animation: letterPulseMobile 2s infinite ease-in-out;
        }

    @keyframes letterPulseMobile {
        0%, 100% {
            transform: scale(1);
            color: #4a5ba5;
        }

        50% {
            transform: scale(1.2);
            color: #405189;
        }
    }
}

@media (max-width: 480px) {
    .create-account-header h1 {
        font-size: 22px;
        flex-direction: row;
        justify-content: center;
    }

    .create-account-header p {
        font-size: 14px;
    }
}

/* Efecto hover opcional */
.create-account-header:hover h1:first-child {
    animation-duration: 1s;
}

/* Variante con efecto rebote (opcional) */
@keyframes letterBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-5px) scale(1.2);
    }

    50% {
        transform: translateY(0) scale(1.3);
    }

    75% {
        transform: translateY(3px) scale(1.1);
    }
}

/* Para usar la animación de rebote, cambia la clase: */
.create-account-header.bounce-animation h1:first-child {
    animation: letterBounce 2s infinite ease-in-out;
}

.create-account-header.gradient-animation h1:first-child {
    background: linear-gradient(90deg, #405189, #4a5ba5, #5d6ec9, #4a5ba5, #405189);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s infinite ease-in-out, scalePulse 2s infinite ease-in-out;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}


pwstrength_viewport_progress {
    margin-top: 8px;
    width: 100%;
    max-width: 280px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pwstrength_viewport_progress .progress {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.pwstrength_viewport_progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .pwstrength_viewport_progress .progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100% );
        animation: shine 2s infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.pwstrength_viewport_progress .password-verdict {
    position: absolute;
    /*  right: 10px;
    top: -20px;*/
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwstrength_viewport_progress .progress-bar-danger {
    background: linear-gradient(90deg, #dc3545, #e35d6a);
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
}

    .pwstrength_viewport_progress .progress-bar-danger .password-verdict {
        color: #dc3545;
    }

.pwstrength_viewport_progress .progress-bar-warning {
    background: linear-gradient(90deg, #fd7e14, #ff9b42);
    box-shadow: 0 0 5px rgba(253, 126, 20, 0.4);
}

    .pwstrength_viewport_progress .progress-bar-warning .password-verdict {
        color: #fd7e14;
    }

.pwstrength_viewport_progress .progress-bar-info {
    background: linear-gradient(90deg, #17a2b8, #3dc5d8);
    box-shadow: 0 0 5px rgba(23, 162, 184, 0.4);
}

    .pwstrength_viewport_progress .progress-bar-info .password-verdict {
        color: #17a2b8;
    }

/* Excelente (76-100%) */
.pwstrength_viewport_progress .progress-bar-success {
    background: linear-gradient(90deg, #28a745, #4cd964);
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
}

    .pwstrength_viewport_progress .progress-bar-success .password-verdict {
        color: #28a745;
    }
