.signin-container {
    background: linear-gradient(135deg, var(--gray-50) 0%, #f1f5f9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.signin-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    max-width: 900px;
    width: 100%;
    min-height: 500px;
}

/* --- SECCIÓN DE MARCA --- */
.signin-brand {
    background: linear-gradient(135deg, var(--ecl-primary) 0%, var(--ecl-secondary) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.signin-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.brand-logo-signin {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    z-index: 2;
    position: relative;
    border-radius: 50%;
}

.brand-title-signin {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
    text-align: center;
}

.brand-subtitle-signin {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
    text-align: center;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 2;
    position: relative;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

/* --- SECCIÓN DE FORMULARIO --- */
.signin-form-section {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signin-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ecl-primary) 0%, var(--ecl-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.signin-title {
    color: var(--gray-800);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.signin-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- FORMULARIO --- */
.signin-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
    color: var(--gray-800);
}

.form-control:focus {
    border-color: var(--ecl-primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(11, 113, 177, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* --- CAPTCHA --- */
.captcha-section {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.captcha-section img {
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--gray-300);
}

/* --- BOTONES --- */
.btn-signin {
    background: linear-gradient(135deg, var(--ecl-primary) 0%, var(--ecl-secondary) 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    min-height: 48px;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 113, 177, 0.3);
    color: white;
}

.btn-cancel {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 48px;
}

.btn-cancel:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* --- ENLACES --- */
.forgot-link {
    color: var(--ecl-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.forgot-link:hover {
    color: var(--ecl-secondary);
    text-decoration: underline;
}

/* --- ERRORES --- */
.form-error {
    color: var(--ecl-danger);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.form-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

/* --- FOOTER --- */
.signin-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .signin-card {
        flex-direction: column;
        max-width: 450px;
    }
    
    .signin-brand {
        display: none;
    }
    
    .signin-form-section {
        padding: 2rem 1.5rem;
    }
    
    .signin-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .signin-container {
        padding: 1rem;
    }
    
    .signin-form-section {
        padding: 1.5rem 1rem;
    }
    
    .signin-title {
        font-size: 1.5rem;
    }
}